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
parent 1f9090e338
commit 4f72457927

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