Skip to content

Instantly share code, notes, and snippets.

@davejtoews
Created March 4, 2021 18:02
Show Gist options
  • Save davejtoews/40f2742fcf915d53ef2355e910626787 to your computer and use it in GitHub Desktop.
Save davejtoews/40f2742fcf915d53ef2355e910626787 to your computer and use it in GitHub Desktop.
Custom ZSH Theme
THEME_GREEN=$FG[113]
THEME_ORANGE=$FG[173]
THEME_BLUE=$FG[080]
THEME_RED=$FG[167]
THEME_PURPLE=$FG[134]
THEME_YELLOW=$FG[179]
PROMPT_SUCCESS_COLOR=$THEME_GREEN
PROMPT_FAILURE_COLOR=$THEME_ORANGE
PROMPT_PROMPT=$THEME_BLUE
GIT_DIRTY_COLOR=$THEME_ORANGE
GIT_CLEAN_COLOR=$THEME_GREEN
GIT_PROMPT_INFO=$THEME_PURPLE
ADDED_COLOR=$THEME_GREEN
MODIFIED_COLOR=$THEME_ORANGE
DELETED_COLOR=$THEME_RED
RENAMED_COLOR=$THEME_ORANGE
UNMERGED_COLOR=$THEME_GREEN
UNTRACKED_COLOR=$THEME_YELLOW
PROMPT="%(?:%{$PROMPT_SUCCESS_COLOR%}➜ :%{$PROMPT_FAILURE_COLOR%}➜ )"
PROMPT+=' %{$PROMPT_PROMPT%}%c%{$reset_color%} $(git_prompt_info)$(virtualenv_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}➤%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$GIT_PROMPT_INFO%}("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%}%{$GIT_PROMPT_INFO%}) "
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘"
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔"
ZSH_THEME_GIT_PROMPT_ADDED="%{$ADDED_COLOR%}✚%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$MODIFIED_COLOR%}✹%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DELETED="%{$DELETED_COLOR%}✖%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$RENAMED_COLOR%}➜%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$UNMERGED_COLOR%}═%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$UNTRACKED_COLOR%}✭%{$reset_color%}"
ZSH_THEME_VIRTUALENV_PREFIX=" ["
ZSH_THEME_VIRTUALENV_SUFFIX="]"
@davejtoews
Copy link
Author

I used https://bashcolors.com to help pick my colours.

@davejtoews
Copy link
Author

Screen Shot 2021-03-04 at 11 19 08 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment