Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Another oh-my-zsh theme with background vim recognize
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%}'
@a0x

This comment has been minimized.

Copy link

@a0x a0x commented Jan 22, 2018

I love this theme!
Thank you very much!

@SeungwonLee

This comment has been minimized.

Copy link

@SeungwonLee SeungwonLee commented Feb 25, 2020

GOOD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.