Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 357ded0

Browse files
committed
Perform a global find/replace.
1 parent 00521fd commit 357ded0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etc/profile.d/chruby.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ function chruby_reset()
44
{
55
[[ -z "$RUBY" ]] && return
66

7-
export PATH=`sed -e "s|$RUBY/bin:||" <<< $PATH`
7+
export PATH=`sed -e "s|$RUBY/bin:||g" <<< $PATH`
88
unset RUBY RUBYOPT
99
1010
if [[ -n "$GEM_HOME" ]] && [[ -n "$GEM_ROOT" ]]; then
11-
export PATH=`sed -e "s|$GEM_HOME/bin:||; s|$GEM_ROOT/bin:||" <<< $PATH`
11+
export PATH=`sed -e "s|$GEM_HOME/bin:||g; s|$GEM_ROOT/bin:||g" <<< $PATH`
1212
unset GEM_ROOT GEM_HOME GEM_PATH
1313
fi
1414

0 commit comments

Comments
 (0)