Commit d5980b51 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

added virtualenv name to zsh-rprompt in "kodo" theme

parent eec11cd2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -41,8 +41,14 @@ ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$WHITE%}]"
local tick=$'\xe2\x9c\x93'
local cross=$'\xe2\x9c\x97'

function virtualenv_name {
	test -z "$ENV_NAME" && return
	print "%{$WHITE_BOLD%}[%{$GREEN_BOLD%}venv:%{$YELLOW_BOLD%}$ENV_NAME%{$WHITE_BOLD%}] "
}

# Prompt format
PROMPT='%{$HOST_COLOUR%}%n@%m: $%{$RESET_COLOR%} '
RPROMPT='%(?:%{$GREEN_BOLD%}$tick:%{$RED_BOLD%}$? $cross)  \
$(virtualenv_name)\
%{$GREEN_BOLD%}$(current_branch)$(git_prompt_short_sha)$(git_prompt_status)\
%{$RESET_COLOR%}'