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
72392a2c
Commit
72392a2c
authored
Jan 06, 2014
by
LFDM
Browse files
Adds all other dummy implementations.
parent
c6aacf61
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/ruby_prompts.zsh
View file @
72392a2c
function
chruby_prompt_info hg_prompt_info pyenv_prompt_info
\
rbenv_prompt_info svn_prompt_info vi_mode_prompt_info
\
virtualenv_prompt_info
{
return
1
}
# oh-my-zsh supports an rvm prompt by default
# get the name of the rvm ruby version
function
rvm_prompt_info
()
{
[
-f
$HOME
/.rvm/bin/rvm-prompt
]
||
return
1
...
...
@@ -7,12 +14,8 @@ function rvm_prompt_info() {
echo
"
${
ZSH_THEME_RVM_PROMPT_PREFIX
:
=(
}${
rvm_prompt
}${
ZSH_THEME_RVM_PROMPT_SUFFIX
:
=)
}
"
}
# using the chruby and/or rbenv plugins will override
# these with real implementations
function
chruby_prompt_info rbenv_prompt_info
{
return
1
}
# use this to enable users to see their ruby version, no matter which
# version management system they use
function
ruby_prompt_info
()
{
echo
$(
rvm_prompt_info
||
rbenv_prompt_info
||
chruby_prompt_info
)
}
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