Skip to content

Instantly share code, notes, and snippets.

@subosito
Created August 26, 2012 13:39
Show Gist options
  • Save subosito/3479440 to your computer and use it in GitHub Desktop.
Save subosito/3479440 to your computer and use it in GitHub Desktop.
personal zsh theme
#
# _ _
# | | (_) _
# ___ _ _| |__ ___ ___ _ _| |_ ___
# /___) | | | _ \ / _ \ /___) (_ _) _ \
# |___ | |_| | |_) ) |_| |___ | | | || |_| |
# (___/|____/|____/ \___/(___/|_| \__)___/
#
#
local path_status="%{$fg[cyan]%}%c%{$reset_color%}"
local command_separator=" %(!.%{$fg_bold[red]%}#.%{$fg_bold[green]%}>)%{$reset_color%} "
local return_status="%{$fg[red]%}%(?.. <>)%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}:"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
PROMPT='${path_status}$(git_prompt_info)$(git_prompt_status)${return_status}${command_separator}'
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} +"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} *"
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} -"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} >"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} #"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ^"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment