diff options
| author | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2021-12-20 17:59:31 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2021-12-20 17:59:31 -0500 |
| commit | e63766edc4c0519d5fee4033eeb4bb193fce9995 (patch) | |
| tree | 574aafdf67823039f8e3e23d3f4102182c4f159a | |
| parent | 9dd607d38c8bfbf4028b77ff5f0b186f6224429c (diff) | |
| download | sh-ves-e63766edc4c0519d5fee4033eeb4bb193fce9995.tar.gz | |
ves-prompt.sh: Initial version
| -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 |