8000 Compact some lines. · devandroid/chruby@0ceb71f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ceb71f

Browse files
committed
Compact some lines.
1 parent 38de509 commit 0ceb71f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

share/chruby/chruby.sh

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

7-
export PATH=":$PATH:"
8-
export PATH=${PATH//:$RUBY\/bin:/:}
7+
export PATH=":$PATH:"; export PATH=${PATH//:$RUBY\/bin:/:}
98

109
if [[ -n "$GEM_HOME" ]] && [[ -n "$GEM_ROOT" ]]; then
1110
export PATH=${PATH//:$GEM_HOME\/bin:/:}
1211
export PATH=${PATH//:$GEM_ROOT\/bin:/:}
1312
fi
1413

15-
export PATH=${PATH#:}
16-
export PATH=${PATH%:}
14+
export PATH=${PATH#:}; export PATH=${PATH%:}
1715

1816
unset RUBY RUBY_ENGINE RUBY_VERSION RUBYOPT GEM_ROOT GEM_HOME GEM_PATH
1917
hash -r

0 commit comments

Comments
 (0)
0