Created
July 31, 2012 04:08
-
-
Save mtully/3213508 to your computer and use it in GitHub Desktop.
Theme for Oh-My-Zsh
This file contains 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
function git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "$ZSH_THEME_GIT_PROMPT_PREFIX$(parse_git_dirty)${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
} | |
PROMPT='%{$fg[white]%}[%1~$(git_prompt_info)%{$fg[white]%}] %{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX=" " | |
ZSH_THEME_GIT_PROMPT_SUFFIX="" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[yellow]%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment