summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2015-11-13 20:48:53 +0300
committerBen Hilburn <bhilburn@gmail.com>2015-11-13 20:48:53 +0300
commit6d3899b6e39a4699bfe35038544ca366bcfdcade (patch)
tree68bee40a60292931f84b4321f8258dc1822a3879
parent04319d3a95d026927ae08985a899c2754b0586b0 (diff)
parent81a4b3907de32b3dfb54fe6b626c1aa2b5faa13b (diff)
Merge pull request #139 from sdupille/master
Get terminal capabilities using a zsh builtin for portability
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 0d4b3e7c..b039f0d7 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -947,7 +947,7 @@ function zle-keymap-select {
powerlevel9k_init() {
# Display a warning if the terminal does not support 256 colors
local term_colors
- term_colors=$(tput colors)
+ term_colors=$(echotc Co)
if (( term_colors < 256 )); then
print -P "%F{red}WARNING!%f Your terminal supports less than 256 colors!"
print -P "You should put: %F{blue}export TERM=\"xterm-256color\"%f in your \~\/.zshrc"