Permalink
Browse files

alias: only apply ZSH aliases if we're running ZSH

  • Loading branch information...
1 parent de33600 commit 4351be2138a32d007b0e8e86c701352c4c7af9a1 @sunaku committed Mar 1, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 .alias.d/zsh.sh
View
@@ -1,4 +1,6 @@
-alias -g G='| grep'
-alias -g V="| $PAGER"
-alias -g T='| tee /dev/tty |'
-alias -g N='/dev/null'
+if test "${SHELL##*/}" = zsh; then
+ alias -g G='| grep'
+ alias -g V="| $PAGER"
+ alias -g T='| tee /dev/tty |'
+ alias -g N='/dev/null'
+fi

0 comments on commit 4351be2

Please sign in to comment.