Created
September 2, 2015 13:55
-
-
Save schminitz/9931af23bbb59e772eec to your computer and use it in GitHub Desktop.
Another oh-my-zsh theme with background vim recognize
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
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}✘" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}✔" | |
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg[red]%}➦" | |
# ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} ✈" | |
# ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} ✭" | |
# ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✗" | |
# ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} ➦" | |
# ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%} ✂" | |
# ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[grey]%} ✱" | |
function prompt_char { | |
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi | |
} | |
# get the name of the branch we are on | |
function vim_bg_info() { | |
if [[ "$(command echo $VIM)" != "" ]]; then | |
echo " ⚡" | |
fi | |
} | |
PROMPT='%(?, ,%{$fg[red]%}FAIL%{$reset_color%} | |
) | |
%{$fg[green]%}[%*]%{$reset_color%} %{$fg[yellow]%}%~%{$reset_color%}$(git_prompt_info)%{$reset_color%}$(git_prompt_ahead)%{$reset_color%}$(vim_bg_info) | |
%_ $(prompt_char) ' | |
# Time on right | |
#RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GOOD.