summaryrefslogtreecommitdiff
path: root/themes/jonathan.zsh-theme
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2015-02-09 20:43:48 +0100
committerMarc Cornellà <marc.cornella@live.com>2015-02-10 19:22:50 +0100
commit2193135ebc4ce0778ff6949b448e4526dbd34284 (patch)
treecf18f5f63bda799616e03e59e48a7fa1ffe2a19a /themes/jonathan.zsh-theme
parent51946eb3ce8021aebe940f879225828d89c12317 (diff)
downloadzsh-2193135ebc4ce0778ff6949b448e4526dbd34284.tar.gz
zsh-2193135ebc4ce0778ff6949b448e4526dbd34284.tar.bz2
zsh-2193135ebc4ce0778ff6949b448e4526dbd34284.zip
Clean up appearance lib file and redundant `colors` calls in other files
Diffstat (limited to 'themes/jonathan.zsh-theme')
-rw-r--r--themes/jonathan.zsh-theme5
1 files changed, 1 insertions, 4 deletions
diff --git a/themes/jonathan.zsh-theme b/themes/jonathan.zsh-theme
index bca92970c..2f0e77431 100644
--- a/themes/jonathan.zsh-theme
+++ b/themes/jonathan.zsh-theme
@@ -44,10 +44,7 @@ setprompt () {
###
# See if we can use colors.
- autoload colors zsh/terminfo
- if [[ "$terminfo[colors]" -ge 8 ]]; then
- colors
- fi
+ autoload zsh/terminfo
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE GREY; do
eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'