new aliases for git + vim config
This commit is contained in:
parent
4640feef42
commit
49bd2d92ae
@ -1,3 +1,21 @@
|
|||||||
[user]
|
[user]
|
||||||
name = Morgan Wattiez
|
name = Morgan Wattiez
|
||||||
email = morgan.wattiez@collibra.com
|
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
|
||||||
|
@ -1 +1,4 @@
|
|||||||
syntax on
|
syntax on
|
||||||
|
set number
|
||||||
|
colorscheme desert
|
||||||
|
set laststatus=2
|
||||||
|
@ -22,6 +22,7 @@ alias me='mb'
|
|||||||
alias hack='hacker'
|
alias hack='hacker'
|
||||||
alias done='task_done'
|
alias done='task_done'
|
||||||
alias h='cd $HOME'
|
alias h='cd $HOME'
|
||||||
|
alias sshpub='cat ~/.ssh/id_rsa.pub'
|
||||||
|
|
||||||
# Show/hide hidden files in Finder
|
# Show/hide hidden files in Finder
|
||||||
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
||||||
|
Loading…
Reference in New Issue
Block a user