diff options
author | June McEnroe <programble@gmail.com> | 2013-09-05 16:41:55 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2013-09-05 16:41:55 -0400 |
commit | f31cd0ebc8efc436434483632fe6c6d51c44401c (patch) | |
tree | a18cf93c429804405f8bb7dc27fcc6241dc740f7 | |
parent | chruby to ruby-2.0.0 (diff) | |
download | src-f31cd0ebc8efc436434483632fe6c6d51c44401c.tar.gz src-f31cd0ebc8efc436434483632fe6c6d51c44401c.zip |
Only alias hub if it exists
-rw-r--r-- | .zshrc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.zshrc b/.zshrc index 945f8449..c5828589 100644 --- a/.zshrc +++ b/.zshrc @@ -120,10 +120,12 @@ alias Syu='pacman -Syu' alias Ss='pacman -Ss' alias p='pacman' -compdef hub=git -alias git=hub -alias g=hub +if which hub &> /dev/null; then + compdef hub=git + alias git=hub +fi +alias g=git alias ga='git add' alias gb='git branch' alias gc='git commit' |