Last active
December 17, 2015 12:49
-
-
Save brianstorti/5612347 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
function virtualenv_info { | |
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') ' | |
} | |
function box_name { | |
[ -f ~/.box-name ] && cat ~/.box-name || hostname -s | |
} | |
git_prompt_info () { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
GIT_STATUS=$(git_prompt_status) | |
[[ -n $GIT_STATUS ]] && GIT_STATUS=" $GIT_STATUS" | |
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$GIT_STATUS$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
} | |
#PROMPT=' | |
#%{$fg_bold[black]%}%n%{$reset_color%} at %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) | |
#$(virtualenv_info)$ ' | |
PROMPT=' | |
%{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) | |
$(virtualenv_info)$ ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[black]%} (" | |
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="*" | |
ZSH_THEME_GIT_PROMPT_MODIFIED="*" | |
ZSH_THEME_GIT_PROMPT_UNTRACKED="?" | |
ZSH_THEME_GIT_PROMPT_STASHED="$" | |
ZSH_THEME_GIT_PROMPT_ADDED="+" | |
ZSH_THEME_GIT_PROMPT_AHEAD=">" | |
ZSH_THEME_GIT_PROMPT_DELETED="!" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}" | |
RPROMPT='${return_status}%{$reset_color%}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment