Last active
August 29, 2015 14:09
-
-
Save jhwhite/b1d6a5d5b5abfd0ad58b to your computer and use it in GitHub Desktop.
My zsh prompt based on gallifrey.zsh-theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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