From 7346ef8f02dc20402d7de15c226a9b304de7a04b Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 5 Sep 2013 16:41:55 -0400 Subject: Only alias hub if it exists --- .zshrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index bdb1933d..354a5dae 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' -- cgit 1.4.1