From 40339ae277360b069d72e25ed2f7bdd7ccda0d13 Mon Sep 17 00:00:00 2001 From: Abhay Rana Date: Wed, 12 Oct 2016 14:30:33 +0530 Subject: [PATCH] [git] Adds a gitconfig alias for fetch and rebase --- files/display/.screenlayout/office_left_only.sh | 2 ++ files/git/.gitconfig | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100755 files/display/.screenlayout/office_left_only.sh diff --git a/files/display/.screenlayout/office_left_only.sh b/files/display/.screenlayout/office_left_only.sh new file mode 100755 index 0000000..6a37589 --- /dev/null +++ b/files/display/.screenlayout/office_left_only.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output HDMI2 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI1 --off --output DP1 --off --output eDP1 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output VIRTUAL1 --off diff --git a/files/git/.gitconfig b/files/git/.gitconfig index 1b24e76..900d132 100644 --- a/files/git/.gitconfig +++ b/files/git/.gitconfig @@ -2,8 +2,10 @@ name = Abhay Rana email = me@captnemo.in signingkey = B8963685 + [github] user = captn3m0 + [alias] rod = rebase origin/development rom = rebase origin/master @@ -17,13 +19,17 @@ fo = fetch origin co = checkout ci = commit + from = "! git fetch origin; git rebase origin/master" + [rerere] enabled = true + [color] branch = auto diff = auto status = auto ui = true + [alias] l50 = "!git log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-50s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$4), $5, $6 }' | less -R" l80 = "!git log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-80s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$4), $5, $6 }' | less -R" @@ -32,13 +38,16 @@ lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(blue)(%an <%ae>)%Creset' --abbrev-commit --date=relative [help] autocorrect = 10 + [push] default = current + [color "diff-highlight"] oldNormal = red bold oldHighlight = red bold 52 newNormal = green bold newHighlight = green bold 22 + [core] # https://github.com/so-fancy/diff-so-fancy pager = diff-so-fancy | less --tabs=4 -RFX