diff --git a/share/bash-function.txt b/share/bash-function.txt index 56783e4..04bd227 100644 --- a/share/bash-function.txt +++ b/share/bash-function.txt @@ -2,6 +2,6 @@ wttr() { # change Paris to your default location local request="wttr.in/${1-Paris}" - [ "$COLUMNS" -lt 125 ] && request+='?n' + [ "$(tput cols)" -lt 125 ] && request+='?n' curl -H "Accept-Language: ${LANG%_*}" --compressed "$request" }