aboutsummaryrefslogtreecommitdiffstats
path: root/ves-prompt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ves-prompt.sh')
-rw-r--r--ves-prompt.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/ves-prompt.sh b/ves-prompt.sh
index 1a24852..edc7133 100644
--- a/ves-prompt.sh
+++ b/ves-prompt.sh
@@ -1 +1,11 @@
#!/bin/sh
+
+if [ $# -lt 1 ]; then
+ SYM="VENV"
+else
+ SYM="$1"
+fi
+
+if [ ! -z $VES_ENV_NM ]; then
+ printf "(%s %s)" $SYM $VES_ENV_NM
+fi