mirror of
https://github.com/gunchev/home_bin.git
synced 2025-11-20 12:15:46 +00:00
Add a possible $COLUMNS not set workaround as comment
This commit is contained in:
parent
1f9090e338
commit
4f72457927
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue