Skip to content

Instantly share code, notes, and snippets.

@kennedysgarage
Created July 12, 2013 00:16
Show Gist options
  • Save kennedysgarage/5980403 to your computer and use it in GitHub Desktop.
Save kennedysgarage/5980403 to your computer and use it in GitHub Desktop.
ZSH
c() { cd ~/code/$1; }
_c() { _files -W ~/code -/; }
compdef _c c
# Kennedy Theme
RPROMPT='$(git_prompt_status)$(git_prompt_info)'
PROMPT="╭─%{$FG[040]%}%n%{$reset_color%}%{$FG[001]%} ${ruby_version}%{$reset_color%} %{$FG[239]%}%{$reset_color%}%{$terminfo[bold]$FG[226]%}${current_dir}%{$reset_color%}
╰─○ "
ZSH_THEME_GIT_PROMPT_PREFIX="%{$FG[255]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} %{$FG[075]%}±%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$FG[001]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$FG[002]%}✓%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[002]%}+%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[003]%}¶%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[001]%}-%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[007]%}»%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[006]%}‡%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[008]%}†%{$reset_color%} "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment