Skip to content

Instantly share code, notes, and snippets.

@apux
Last active October 12, 2015 09:57
Show Gist options
  • Save apux/4009043 to your computer and use it in GitHub Desktop.
Save apux/4009043 to your computer and use it in GitHub Desktop.
Zsh Theme
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