Skip to content

Instantly share code, notes, and snippets.

@jhwhite
Last active August 29, 2015 14:09
Show Gist options
  • Save jhwhite/b1d6a5d5b5abfd0ad58b to your computer and use it in GitHub Desktop.
Save jhwhite/b1d6a5d5b5abfd0ad58b to your computer and use it in GitHub Desktop.
My zsh prompt based on gallifrey.zsh-theme
# Based on gallifrey with a few small changes
function collapse_pwd {
echo $(pwd | sed -e "s,^$HOME,~,")
}
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
PROMPT='%{$fg[green]%}$(collapse_pwd) $(git_prompt_info)%{$reset_color%}%B➜ %b '
RPS1="${return_code}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment