From 0ecfe53b2d271133fac36de11ecfc0f7e47840f0 Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Sat, 6 Jun 2026 12:27:03 -0400 Subject: Initial version complete I dusted this off after years and had Claude finish it for me. caveat emptor: this is largely (though not entirely) LLM generated as of this commit --- ves-prompt.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) mode change 100644 => 100755 ves-prompt.sh (limited to 'ves-prompt.sh') diff --git a/ves-prompt.sh b/ves-prompt.sh old mode 100644 new mode 100755 index 1d79373..c870db2 --- a/ves-prompt.sh +++ b/ves-prompt.sh @@ -1,4 +1,9 @@ #!/bin/sh +# +# Print a prompt fragment naming the active sh-ves environment, for +# inclusion in a POSIX shell's PS1 string. Prints nothing when no +# environment is active. +# if [ $# -lt 1 ]; then sym="VENV" @@ -6,6 +11,6 @@ else sym="$1" fi -if [ ! -z "$SHVES_ENV_NM" ]; then - printf "(%s %s)" "$sym" "$VES_ENV_NM" +if [ -n "$SHVES_ENV_NM" ]; then + printf "(%s %s)" "$sym" "$SHVES_ENV_NM" fi -- cgit v1.2.3