diff options
| -rw-r--r-- | ves-prompt.sh | 10 |
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 |