Skip to content

Instantly share code, notes, and snippets.

@ghiden
Last active October 10, 2015 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghiden/3665032 to your computer and use it in GitHub Desktop.
Save ghiden/3665032 to your computer and use it in GitHub Desktop.
oh-my-zsh prompt with rbenv version along with git stuff
function ruby_version() {
echo `rbenv version | sed -e 's/ .*//'`
}
PROMPT='%{$fg[yellow]%}$(ruby_version)%{$fg[yellow]%} %{$fg_bold[red]%}➜ %{$fg_bold[green]%}%~ %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$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