Skip to content

Instantly share code, notes, and snippets.

@chatman-media
Created June 23, 2014 11:19
Show Gist options
  • Select an option

  • Save chatman-media/a590577773c679e03654 to your computer and use it in GitHub Desktop.

Select an option

Save chatman-media/a590577773c679e03654 to your computer and use it in GitHub Desktop.
zsh theme
if which rbenv &> /dev/null; then
RUBY_PROMPT="%{$fg_bold[blue]%}rbenv:%{$reset_color%}(%{$fg[green]%}\$(rbenv version | sed -e 's/ (set.*$//')%{$fg_bold[blue]%})%{$reset_color%} "
fi
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s %{$reset_color%})"
PATH_PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$reset_color%}%{$fg[cyan]%}%c%{$reset_color%} '
GIT_PROMPT='%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
PROMPT="%{$fg[blue]%}%D{[%I:%M:%S]} $PATH_PROMPT$RUBY_PROMPT$GIT_PROMPT
%B$%b "
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$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