Skip to content
Snippets Groups Projects
Commit 0e1ae7e1 authored by Bruno's avatar Bruno
Browse files

Merge pull request #234 from hsharrison/upstream

add virtualenv section to agnoster-mercurial prompt
parents ba840696 adcaa839
Branches
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment