From fe60d0a7a27a38dda939548cc47dac575f5638f0 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sun, 20 Sep 2015 09:22:44 +0200 Subject: [PATCH] bash: add git aliases --- bashrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bashrc b/bashrc index 9565a6d..061c273 100644 --- a/bashrc +++ b/bashrc @@ -22,3 +22,10 @@ shopt -s autocd for i in /etc/profile.d/bash-completion /etc/bash_completion; do test -f $i && . $i && break 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