Skip to content

Instantly share code, notes, and snippets.

@garrypolley
Created July 1, 2014 21:57
Show Gist options
  • Select an option

  • Save garrypolley/1811640154bd1e0ebf1f to your computer and use it in GitHub Desktop.

Select an option

Save garrypolley/1811640154bd1e0ebf1f to your computer and use it in GitHub Desktop.
my zsh theme right now for rails development
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