Created
May 8, 2014 17:10
-
-
Save joshuacronemeyer/e7fedc0d08cb5188371d to your computer and use it in GitHub Desktop.
Workaround for .yadr skwp pretzo prompt theme and rbenv with the gemfile plugin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1 +1 @@ | |
-Subproject commit a4bacb8bb9293d55db3afe1542e97ec7d964011a | |
+Subproject commit 16aa48baeb92866a1921ce2199f2cba1099ce22c | |
diff --git i/zsh/prezto-themes/prompt_skwp_setup w/zsh/prezto-themes/prompt_skwp_setup | |
index c45eb8a..0ed6b0f 100644 | |
--- i/zsh/prezto-themes/prompt_skwp_setup | |
+++ w/zsh/prezto-themes/prompt_skwp_setup | |
@@ -23,9 +23,13 @@ function prompt_skwp_precmd { | |
fi | |
# Get ruby information | |
- if (( $+functions[ruby-info] )); then | |
- ruby-info | |
- fi | |
+ #ruby-info | |
+ unset ruby_info | |
+ typeset -gA ruby_info | |
+ | |
+ version=`ruby -v | sed -E 's/^ruby ([^ ]+).*$/\1/'` | |
+ ruby_info[separator]=":" | |
+ ruby_info[version]="$version" | |
} | |
function prompt_skwp_setup { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment