Skip to content

Instantly share code, notes, and snippets.

@alswl
Created June 19, 2019 09:05
Show Gist options
  • Save alswl/406f924ba87159ca42d7026911e4db81 to your computer and use it in GitHub Desktop.
Save alswl/406f924ba87159ca42d7026911e4db81 to your computer and use it in GitHub Desktop.
local ret_status="%(?:%{$fg_bold[green]%}$:%{$fg_bold[red]%}$)"
PROMPT='%{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)${ret_status}%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment