Skip to content

Instantly share code, notes, and snippets.

@sauron
Created June 26, 2013 01:58
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 sauron/5864172 to your computer and use it in GitHub Desktop.
Save sauron/5864172 to your computer and use it in GitHub Desktop.
Basic zsh theme configuration. Showing the current path, git branch, rvm info Based on robbyrussell ohmyzsh theme
function is_rvm() {
if [[ "$(rvm-prompt)" != "" ]]; then
echo "[%{$fg[red]%}$(rvm-prompt)%{$fg_bold[white]%}]"
fi
}
PROMPT='%{$fg_bold[cyan]%}%c %{$fg_bold[white]%}$(git_prompt_info)%{$fg_bold[white]%}$(is_rvm) %{$fg_bold[cyan]%}• %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}*%{$fg[white]%}]%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[white]%}]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment