Skip to content

Commit

Permalink
Don't show ruby info if using system version
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed Nov 9, 2017
1 parent 7ebb5e9 commit c7dcd21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/ruby/functions/ruby-info
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ if (( $+commands[rvm-prompt] )); then
version="$(rvm-prompt)"
elif (( $+commands[rbenv] )); then
version="$(rbenv version-name)"
if [[ $version == "system" ]]; then
version=""
fi
elif (( $+commands[ruby] )); then
version="${${$(ruby --version)[(w)1,(w)2]}/ /-}"
fi
Expand Down

0 comments on commit c7dcd21

Please sign in to comment.