Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
b1ab13d9
Commit
b1ab13d9
authored
May 14, 2016
by
Pierre Dimitrou
Browse files
Add rbenv support for ruby version display
parent
621eb211
Changes
1
Show whitespace changes
Inline
Side-by-side
themes/avit.zsh-theme
View file @
b1ab13d9
...
@@ -41,6 +41,8 @@ function _vi_status() {
...
@@ -41,6 +41,8 @@ function _vi_status() {
function _ruby_version() {
function _ruby_version() {
if {echo $fpath | grep -q "plugins/rvm"}; then
if {echo $fpath | grep -q "plugins/rvm"}; then
echo "%{$fg[grey]%}$(rvm_prompt_info)%{$reset_color%}"
echo "%{$fg[grey]%}$(rvm_prompt_info)%{$reset_color%}"
elif {echo $fpath | grep -q "plugins/rbenv"}; then
echo "%{$fg[grey]%}$(rbenv_prompt_info)%{$reset_color%}"
fi
fi
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment