new aliases for git + vim config

This commit is contained in:
Morgan Wattiez 2019-03-01 22:17:53 +01:00
parent 4640feef42
commit 49bd2d92ae
3 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,21 @@
[user]
name = Morgan Wattiez
email = morgan.wattiez@collibra.com
[alias]
tags = log --no-walk --tags --pretty=\"%h %d %s\" --decorate=full
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
st = status
contrib = ! git log --pretty=format:'%aN' | sort | uniq -c | sort -nr
whois = ! sh -c 'git log -i --pretty=\"format:%an <%ae>\" --author=\"\" | sort -u' -
di = diff -w --color-words=.
ac = ! git add . && git commit -v
unstage = reset HEAD
ru = clean -f
b = branch -vvar
follow = ! sh -c 'git checkout -t origin/$1' -
unfollow = ! git checkout master && git branch -d
sortdiff = ! sh -c 'git diff | grep ^[+-] | sort --key=1.2 | uniq -u -s1'
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p

View File

@ -1 +1,4 @@
syntax on
set number
colorscheme desert
set laststatus=2

View File

@ -22,6 +22,7 @@ alias me='mb'
alias hack='hacker'
alias done='task_done'
alias h='cd $HOME'
alias sshpub='cat ~/.ssh/id_rsa.pub'
# Show/hide hidden files in Finder
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"