Created
May 22, 2014 11:40
-
-
Save GuGuss/8e636e7ef8f053238fab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################### | |
# 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