10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c0bc3 commit ec96541Copy full SHA for ec96541
etc/profile.d/chruby.sh
@@ -4,14 +4,15 @@ function chruby_reset()
4
{
5
[[ -z "$RUBY" ]] && return
6
7
- export PATH=`sed -e "s|$RUBY/bin:||g" <<< $PATH`
8
- unset RUBY RUBY_ENGINE RUBY_VERSION RUBYOPT
+ export PATH=`sed -e "s|$RUBY/bin:||g" <<< :$PATH:`
9
10
if [[ -n "$GEM_HOME" ]] && [[ -n "$GEM_ROOT" ]]; then
11
export PATH=`sed -e "s|$GEM_HOME/bin:||g; s|$GEM_ROOT/bin:||g" <<< $PATH`
12
- unset GEM_ROOT GEM_HOME GEM_PATH
13
fi
14
+ unset RUBY RUBY_ENGINE RUBY_VERSION RUBYOPT GEM_ROOT GEM_HOME GEM_PATH
+
15
+ export PATH=`sed -e "s|^:*||; s|:*$||" <<< $PATH`
16
hash -r
17
}
18
0 commit comments