From c7dcd21c9e557ca243bc213a711a18a7f38d5d56 Mon Sep 17 00:00:00 2001 From: Kaleb Elwert Date: Thu, 9 Nov 2017 13:55:20 -0800 Subject: [PATCH] Don't show ruby info if using system version Based off https://github.com/chauncey-garrett/zsh-prezto/commit/a8fe1b3cb42c2a44349fa373ade5b46d5b9a57ee by @chauncey-garrett --- modules/ruby/functions/ruby-info | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ruby/functions/ruby-info b/modules/ruby/functions/ruby-info index d53435b..7e64c27 100644 --- a/modules/ruby/functions/ruby-info +++ b/modules/ruby/functions/ruby-info @@ -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