#!/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