Skip to content

Instantly share code, notes, and snippets.

@garrypolley
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save garrypolley/4900c3c75a6dd99147b5 to your computer and use it in GitHub Desktop.

Select an option

Save garrypolley/4900c3c75a6dd99147b5 to your computer and use it in GitHub Desktop.
My ZSH theme combination of robbyrussell.theme and Soliah.theme
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
PROMPT='${ret_status}%{$fg_bold[green]%}%p$(rvm_gemset)%{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
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]%})"
# Determine if we are using a gemset.
function rvm_gemset() {
GEMSET=`rvm gemset list | grep '=>' | cut -b4-`
if [[ -n $GEMSET ]]; then
echo "%{$fg[magenta]%}$GEMSET%{$reset_color%}@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment