Created
November 28, 2012 21:58
-
-
Save Dru89/4164947 to your computer and use it in GitHub Desktop.
My ZSH Theme
This file contains hidden or 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
# proze.zsh-theme | |
# Most of this was taken from http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/ | |
# Determine what character to use in place of the '$' for my prompt. | |
function repo_char { | |
git branch >/dev/null 2>/dev/null && echo '☿' && return | |
echo '○' | |
} | |
# Display any virtual env stuff with python. | |
function virtualenv_info { | |
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') ' | |
} | |
# All of my git variables. | |
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!" | |
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
# I like a new line between my result and the next prompt. Makes it easier to see | |
PROMPT=' | |
%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) | |
$(virtualenv_info)$(repo_char) ' | |
# Display the date. (My desktop at work uses $(date -u ...) instead, because I use UTC a lot at work. | |
RPROMPT='$(date "+%x %T %Z")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment