Last active
October 12, 2015 09:57
-
-
Save apux/4009043 to your computer and use it in GitHub Desktop.
Zsh Theme
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
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' | |
local rvm='' | |
if which rvm-prompt &> /dev/null; then | |
rvm='‹$(rvm-prompt i v g)›' | |
else | |
if which rbenv &> /dev/null; then | |
rvm='‹$(rbenv version | sed -e "s/ (set.*$//")›' | |
fi | |
fi | |
eval my_gray='$FG[237]' | |
RPROMPT="$my_gray ${rvm} %{$reset_color%}%" | |
ZSH_THEME_GIT_PROMPT_PREFIX="(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment