Add a possible $COLUMNS not set workaround as comment

This commit is contained in:
Doncho N. Gunchev 2020-10-11 14:21:07 +03:00 committed by Doncho N. Gunchev
parent 546129bed1
commit 8b977b8f73
Signed by: dgunchev
GPG key ID: D30FD19F37E002A9

View file

@ -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