summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Iversen <teh.ivo@gmail.com>2015-09-21 17:03:59 +1000
committerMatthew Iversen <teh.ivo@gmail.com>2015-09-21 17:03:59 +1000
commit7905ddecf91ba91633a18b9652284c03f9417d65 (patch)
treefdc9a4e2367fcdebe598b8fe40295568ca3c6f05
parentcbce44d0503a978dc2849d7476066d02c4b1fc1a (diff)
downloadvirtualenv-7905ddecf91ba91633a18b9652284c03f9417d65.tar.gz
Add a space after env name in prompt
-rw-r--r--virtualenv_embedded/activate.fish2
-rw-r--r--virtualenv_embedded/activate.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/virtualenv_embedded/activate.fish b/virtualenv_embedded/activate.fish
index 1766fba..f8610b9 100644
--- a/virtualenv_embedded/activate.fish
+++ b/virtualenv_embedded/activate.fish
@@ -59,7 +59,7 @@ if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
if test -n "__VIRTUAL_PROMPT__"
printf '%s%s' "__VIRTUAL_PROMPT__" (set_color normal)
else
- printf '%s(%s%s)%s' (set_color normal) (set_color -b black -o white) (basename "$VIRTUAL_ENV") (set_color normal)
+ printf '%s(%s%s)%s ' (set_color normal) (set_color -b black -o white) (basename "$VIRTUAL_ENV") (set_color normal)
end
# Restore the original $status
diff --git a/virtualenv_embedded/activate.sh b/virtualenv_embedded/activate.sh
index ded4b0e..f150896 100644
--- a/virtualenv_embedded/activate.sh
+++ b/virtualenv_embedded/activate.sh
@@ -57,7 +57,7 @@ if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
if [ "x__VIRTUAL_PROMPT__" != x ] ; then
PS1="__VIRTUAL_PROMPT__$PS1"
else
- PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1"
+ PS1="(`basename \"$VIRTUAL_ENV\"`) $PS1"
fi
export PS1
fi