Skip to content

Instantly share code, notes, and snippets.

@thepleb
Created March 9, 2012 04:47
Show Gist options
  • Save thepleb/2005088 to your computer and use it in GitHub Desktop.
Save thepleb/2005088 to your computer and use it in GitHub Desktop.
My oh.my.zsh theme file
PROMPT='$fg[green][%m]%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg[red]%}$(rvm_ruby_prompt)
%{$fg_bold[red]%}➜ %{$reset_color%}'
RPROMPT='%{$reset_color%} %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[magenta]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
function rvm_ruby_prompt {
ruby_version=$(~/.rvm/bin/rvm-prompt)
if [ -n "$ruby_version" ]; then
echo "[$ruby_version]"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment