summaryrefslogtreecommitdiff
path: root/themes/suvash.zsh-theme
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2019-05-08 08:50:31 +0200
committerMarc Cornellà <marc.cornella@live.com>2019-05-08 08:50:31 +0200
commit76c7bd57c332b3d9231dc2c6167f3c5d3e56e110 (patch)
treeacdc36193f390e01f4144ff8feefd126b5aecd8b /themes/suvash.zsh-theme
parentea3e666e04bfae31b37ef42dfe54801484341e46 (diff)
parent299cd4777a8b9da1934a1ed0c80767eea6691a70 (diff)
downloadzsh-76c7bd57c332b3d9231dc2c6167f3c5d3e56e110.tar.gz
zsh-76c7bd57c332b3d9231dc2c6167f3c5d3e56e110.tar.bz2
zsh-76c7bd57c332b3d9231dc2c6167f3c5d3e56e110.zip
Merge branch 'apjanke/themes-rvm-prompt-function' (#4588)
Fixes #4272 Fixes #4182 Closes #4197 Closes #4588
Diffstat (limited to 'themes/suvash.zsh-theme')
-rw-r--r--themes/suvash.zsh-theme15
1 files changed, 1 insertions, 14 deletions
diff --git a/themes/suvash.zsh-theme b/themes/suvash.zsh-theme
index 1680973df..850476cdf 100644
--- a/themes/suvash.zsh-theme
+++ b/themes/suvash.zsh-theme
@@ -8,20 +8,7 @@ function virtualenv_info {
[[ -n "$VIRTUAL_ENV" ]] && echo '('${VIRTUAL_ENV:t}') '
}
-function ruby_prompt {
- if (( $+commands[rvm-prompt] )); then
- print -n $ZSH_THEME_RUBY_PROMPT_PREFIX
- print -n $(~/.rvm/bin/rvm-prompt)
- print -n $ZSH_THEME_RUBY_PROMPT_SUFFIX
- elif (( $+commands[rbenv] )); then
- print -n $ZSH_THEME_RUBY_PROMPT_PREFIX
- print -n $(rbenv version | sed -e "s/ (set.*$//")
- print -n $ZSH_THEME_RUBY_PROMPT_SUFFIX
- fi
- return 0
-}
-
-PROMPT='%F{magenta}%n%f at %F{yellow}%m%f in %B%F{green}%~%f%b$(git_prompt_info)$(ruby_prompt)
+PROMPT='%F{magenta}%n%f at %F{yellow}%m%f in %B%F{green}%~%f%b$(git_prompt_info)$(ruby_prompt_info)
$(virtualenv_info) $(prompt_char) '
ZSH_THEME_GIT_PROMPT_PREFIX=' on %F{magenta}'