Skip to content

Instantly share code, notes, and snippets.

@Casao
Created June 25, 2014 23:22
Show Gist options
  • Save Casao/c015eca849fe790999e1 to your computer and use it in GitHub Desktop.
Save Casao/c015eca849fe790999e1 to your computer and use it in GitHub Desktop.
Custom ZSH theme
# Copied and modified from the oh-my-zsh theme from geoffgarside -> copied from daveverwer
# Red server name, green cwd, blue git status
PROMPT='%{$fg[red]%}%m%{$reset_color%}:%{$fg[green]%}%c%{$reset_color%}$(git_prompt_info)$(git_prompt_status) %(!.#.$) '
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[blue]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[028]%}✚%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[057]%}✹%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[055]%}➜%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[094]%}═%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[red]%}✭%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="✔%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment