Browse Source

Changed git to absolute path to fix sourcing recursion bug.

master
Daniel Sissom 5 years ago
parent
commit
d53f97ea65
Signed by untrusted user who does not match committer: djsissom GPG Key ID: 2C30FFB796852389
1 changed files with 3 additions and 3 deletions
  1. + 3
    - 3
      zsh/zshrc

+ 3
- 3
zsh/zshrc

@ -405,9 +405,9 @@ case "$host" in
alias scp='eval $(/usr/bin/keychain --eval --agents ssh --quick --quiet --timeout 480 ~/.ssh/id_rsa) && scp' alias scp='eval $(/usr/bin/keychain --eval --agents ssh --quick --quiet --timeout 480 ~/.ssh/id_rsa) && scp'
my_git() { my_git() {
case $* in case $* in
( push* ) shift; eval $(/usr/bin/keychain --eval --agents ssh --quick --quiet --timeout 480 ~/.ssh/id_rsa) && git push "$@" ;;
( pull* ) shift; eval $(/usr/bin/keychain --eval --agents ssh --quick --quiet --timeout 480 ~/.ssh/id_rsa) && git pull "$@" ;;
( * ) git "$@" ;;
( push* ) shift; eval $(/usr/bin/keychain --eval --agents ssh --quick --quiet --timeout 480 ~/.ssh/id_rsa) && /usr/bin/git push "$@" ;;
( pull* ) shift; eval $(/usr/bin/keychain --eval --agents ssh --quick --quiet --timeout 480 ~/.ssh/id_rsa) && /usr/bin/git pull "$@" ;;
( * ) /usr/bin/git "$@" ;;
esac esac
} }
alias git='my_git' alias git='my_git'

Loading…
Cancel
Save