bash: add git aliases
This commit is contained in:
parent
15609c20cd
commit
fe60d0a7a2
7
bashrc
7
bashrc
@ -22,3 +22,10 @@ shopt -s autocd
|
|||||||
for i in /etc/profile.d/bash-completion /etc/bash_completion; do
|
for i in /etc/profile.d/bash-completion /etc/bash_completion; do
|
||||||
test -f $i && . $i && break
|
test -f $i && . $i && break
|
||||||
done
|
done
|
||||||
|
|
||||||
|
alias gl='git pull'
|
||||||
|
alias gp='git push'
|
||||||
|
if type -t __git_complete >/dev/null; then
|
||||||
|
__git_complete gl _git_pull
|
||||||
|
__git_complete gp _git_push
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user