add virtualenv section to agnoster-mercurial prompt

This commit is contained in:
hsharrison 2014-09-01 15:06:06 -04:00 committed by Henry S. Harrison
parent ba8406967f
commit adcaa83942

View File

@ -88,6 +88,12 @@ end
# Theme components
# ===========================
function prompt_virtual_env -d "Display Python virtual environment"
if test "$VIRTUAL_ENV"
prompt_segment white black (basename $VIRTUAL_ENV)
end
end
function prompt_user -d "Display actual user if different from $default_user"
if [ "$theme_display_user" = "yes" ]
if [ "$USER" != "$default_user" -o -n "$SSH_CLIENT" ]
@ -166,6 +172,7 @@ end
function fish_prompt
set -g RETVAL $status
prompt_status
prompt_virtual_env
prompt_user
prompt_dir
prompt_hg