summaryrefslogtreecommitdiff
path: root/themes/macovsky-ruby.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/macovsky-ruby.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/macovsky-ruby.zsh-theme')
l---------[-rw-r--r--]themes/macovsky-ruby.zsh-theme16
1 files changed, 1 insertions, 15 deletions
diff --git a/themes/macovsky-ruby.zsh-theme b/themes/macovsky-ruby.zsh-theme
index abda6232c..d3ee200a9 100644..120000
--- a/themes/macovsky-ruby.zsh-theme
+++ b/themes/macovsky-ruby.zsh-theme
@@ -1,15 +1 @@
-# ZSH Theme - Preview: https://i.gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
-local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
-
-if [ -e ~/.rvm/bin/rvm-prompt ]; then
- PROMPT='%{$fg[green]%}%~%{$reset_color%} %{$fg[red]%}‹$(~/.rvm/bin/rvm-prompt i v)› %{$reset_color%} $(git_prompt_info)%{$reset_color%}%B$%b '
-else
- if which rbenv &> /dev/null; then
- PROMPT='%{$fg[green]%}%~%{$reset_color%} %{$fg[red]%}‹$(rbenv version | sed -e "s/ (set.*$//")› %{$reset_color%} $(git_prompt_info)%{$reset_color%}%B$%b '
- fi
-fi
-
-RPS1="${return_code}"
-
-ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
-ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
+macovsky.zsh-theme \ No newline at end of file