This commit is contained in:
J. Randall Hunt 2012-12-02 12:25:16 -08:00
commit 816347730b
3 changed files with 8 additions and 26 deletions

View file

@ -69,9 +69,9 @@ function current_repository() {
}
# these aliases take advantage of the previous function
alias ggpull='git pull origin $(current_branch)'
alias ggpull='git pull origin --rebase $(current_branch)'
compdef ggpull=git
alias ggpush='git push origin $(current_branch)'
compdef ggpush=git
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
alias ggpnp='git pull origin --rebase $(current_branch) && git push origin $(current_branch)'
compdef ggpnp=git

View file

@ -1,5 +1,8 @@
WRAPPER_FOUND=0
for wrapsource in "/usr/bin/virtualenvwrapper.sh" "/usr/local/bin/virtualenvwrapper.sh" "/etc/bash_completion.d/virtualenvwrapper" ; do
for wrapsource in "/usr/bin/virtualenvwrapper_lazy.sh" \
"/usr/local/bin/virtualenvwrapper_lazy.sh" \
"/usr/local/share/python/virtualenvwrapper_lazy.sh" \
"/etc/bash_completion.d/virtualenvwrapper"; do
if [[ -e $wrapsource ]] ; then
WRAPPER_FOUND=1
source $wrapsource