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 40e2afd commit 92d25efCopy full SHA for 92d25ef
share/chruby/chruby.sh
@@ -48,14 +48,14 @@ function chruby()
48
echo "usage: chruby [RUBY|VERSION|system] [RUBY_OPTS]"
49
;;
50
"")
51
+ local star
52
+
53
for ruby_path in ${RUBIES[@]}; do
- if [[ "$ruby_path" == "$RUBY" ]]; then
- echo -n " * "
54
- else
55
- echo -n " "
+ if [[ "$ruby_path" == "$RUBY" ]]; then star="*"
+ else star=" "
56
fi
57
58
- echo `basename "$ruby_path"`
+ echo " $star $(basename "$ruby_path")"
59
done
60
61
system) chruby_reset ;;
0 commit comments