From: Oleg Broytman Date: Tue, 27 Apr 2021 05:42:08 +0000 (+0300) Subject: Feat(bash_prompt): Set default value for `$COLUMNS` to 80 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=44bc3c3f9a5cdaddf8bad3f0c87e2237bbbb03c6;p=dotfiles.git Feat(bash_prompt): Set default value for `$COLUMNS` to 80 --- diff --git a/admin/prog/bash_prompt b/admin/prog/bash_prompt index a605602..1454370 100644 --- a/admin/prog/bash_prompt +++ b/admin/prog/bash_prompt @@ -7,7 +7,7 @@ cgmem_which_prompt() { } # Cut directories to 20% of the terminal width; add space for 3 dots -_DIR_LENGTH=`awk "END { print int(0.2 * $COLUMNS) }"