Skip to content

Instantly share code, notes, and snippets.

@GuGuss
Created May 22, 2014 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GuGuss/8e636e7ef8f053238fab to your computer and use it in GitHub Desktop.
Save GuGuss/8e636e7ef8f053238fab to your computer and use it in GitHub Desktop.
###############################################################
# Custom theme made by GuGuss by extending the superjarin theme
###############################################################
NAME_="%{$fg[white]%}%{$fg[red]%}%B%n%b%{$fg[white]%}%{$reset_color%}"
# Grab the current filepath, use shortcuts: ~/Desktop
# Append the current git branch, if in a git repository
JARIN_CURRENT_LOCA_="%{$fg_bold[green]%}%~\$(git_prompt_info)%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%} [%{$fg[blue]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[green]%}"
# Do nothing if the branch is clean (no changes).
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}]"
# Add a yellow ✗ if the branch is dirty
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}✗"
# Put it all together!
PROMPT="$NAME_ $JARIN_CURRENT_LOCA_ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment