Thanks to visit codestin.com Credit goes to github.com
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 00521fd commit 357ded0Copy full SHA for 357ded0
etc/profile.d/chruby.sh
@@ -4,11 +4,11 @@ function chruby_reset()
4
{
5
[[ -z "$RUBY" ]] && return
6
7
- export PATH=`sed -e "s|$RUBY/bin:||" <<< $PATH`
+ export PATH=`sed -e "s|$RUBY/bin:||g" <<< $PATH`
8
unset RUBY RUBYOPT
9
10
if [[ -n "$GEM_HOME" ]] && [[ -n "$GEM_ROOT" ]]; then
11
- export PATH=`sed -e "s|$GEM_HOME/bin:||; s|$GEM_ROOT/bin:||" <<< $PATH`
+ 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
0 commit comments