Permalink
Browse files

Merge pull request #10 from zimbatm/fix/setup-in-zsh

Don't setup bash completion in non-bash shells
  • Loading branch information...
2 parents c949584 + 04f37ae commit 269f4022d4f1124e8ca9b4c5b1bd5797d23a3c70 Jay Adkisson committed Mar 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/ry
View
4 bin/ry
@@ -81,8 +81,8 @@ ry::current() {
#
ry::setup() {
cat <<sh
-export PATH="$(ry fullpath "$@")"
-. "$RY_PREFIX/lib/ry.bash_completion"
+export PATH="$(ry fullpath "$@")";
+if [ -n "\$BASH_VERSION" ]; then . "$RY_PREFIX/lib/ry.bash_completion"; fi
sh
}

0 comments on commit 269f402

Please sign in to comment.