Skip to content

Commit

Permalink
fix zsh deactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Oct 30, 2020
1 parent 46e0c58 commit af858fd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions recipe/deactivate.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
if [ ! -z "$ZSH_VERSION" ]; then
if [ "$ZSH_VERSION" != "" ]; then
unset GEM_HOME
path=(${path[@]:#"$CONDA_PREFIX/Library/share/rubygems/bin"})
path=(${path[@]:#"$CONDA_PREFIX/share/rubygems/bin"})
else
# Taken from http://www.linuxfromscratch.org/blfs/view/svn/postlfs/profile.html
# Functions to help us manage paths. Second argument is the name of the
# path variable to be modified (default: PATH)
Expand All @@ -14,11 +18,7 @@ if [ ! -z "$ZSH_VERSION" ]; then
done
export $PATHVARIABLE="$NEWPATH"
}
unset $GEM_HOME
unset GEM_HOME
pathremove "$CONDA_PREFIX/Library/share/rubygems/bin"
pathremove "$CONDA_PREFIX/share/rubygems/bin"
else
unset $GEM_HOME
path=(${path[@]:#"$CONDA_PREFIX/Library/share/rubygems/bin"})
path=(${path[@]:#"$CONDA_PREFIX/share/rubygems/bin"})
fi

0 comments on commit af858fd

Please sign in to comment.