blob: c870db27895a5e9a873c8e39373ffba1d8df519f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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"
else
sym="$1"
fi
if [ -n "$SHVES_ENV_NM" ]; then
printf "(%s %s)" "$sym" "$SHVES_ENV_NM"
fi
|