diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-03-14 09:52:21 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-03-14 09:52:21 +0300 |
commit | 46d70094e29661955fd2fa0d7277e48bcd070974 (patch) | |
tree | cba37ccb86ad53363b0b3b34f6b1f461aa296e4a /powerlevel9k.zsh-theme | |
parent | 0fa2f7ba65add69cb29149a6da8930c5179de1f7 (diff) |
suppress "no such command: tput" on startup
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 1f8f4342..4c2a04ba 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -2156,7 +2156,7 @@ _p9k_init() { # Display a warning if the terminal does not support 256 colors. if [[ $POWERLEVEL9K_IGNORE_TERM_COLORS == false ]]; then local n - if { hash tput && n=$(tput colors) || n=$(echotc Co) } && (( n < 256 )); then + if { hash tput && n=$(tput colors) || hash echotc && n=$(echotc Co) } 2>/dev/null && (( n < 256 )); then if [[ -n $n && $n -lt 256 ]]; then print -P '%F{red}WARNING!%f Your terminal appears to support fewer than 256 colors!' print -P 'If your terminal supports 256 colors, please export the appropriate environment variable.' |