diff --git a/bash/ps-twtty-7.sh b/bash/ps-twtty-7.sh index 597adeb..e725bb0 100755 --- a/bash/ps-twtty-7.sh +++ b/bash/ps-twtty-7.sh @@ -78,6 +78,7 @@ function prompt_command() { local prompt="--($my_D, Err $E, $my_TTY)---($PWD)--" local fillsize=0 + #if [ -z "${COLUMNS}" ]; then COLUMNS=$(tput cols); fi let fillsize=${COLUMNS}-${#prompt} my_FILL="" if [ $fillsize -gt 0 ]; then