summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2018-08-20 17:50:11 +0200
committerMarc Cornellà <marc.cornella@live.com>2018-08-20 17:50:11 +0200
commit3d1719c618e83b03ec7fae023444cdacf729f63a (patch)
treec8c876ad57741d1e644aa2ed7dc24004de6e4d39
parent4774bc62d5e1799ff531f2713f4a8cb493a406a1 (diff)
downloadzsh-3d1719c618e83b03ec7fae023444cdacf729f63a.tar.gz
zsh-3d1719c618e83b03ec7fae023444cdacf729f63a.tar.bz2
zsh-3d1719c618e83b03ec7fae023444cdacf729f63a.zip
trapd00r: optimize reset of foreground colors
-rwxr-xr-xthemes/trapd00r.zsh-theme13
1 files changed, 7 insertions, 6 deletions
diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme
index 51d5387e0..a1db9945c 100755
--- a/themes/trapd00r.zsh-theme
+++ b/themes/trapd00r.zsh-theme
@@ -55,28 +55,29 @@ zsh_path() {
if [[ $c = "/" ]]; then
if [[ $i -eq 1 ]]; then
if [[ $colors -ge 256 ]]; then
- print -Pn '%F{065}%B /%b%f'
+ print -Pn "%F{065}%B /%b"
else
- print -Pn '\e[31;1m /%f'
+ print -Pn "\e[31;1m /"
fi
(( i++ ))
continue
fi
if [[ $colors -ge 256 ]]; then
- print -Pn "${yellow[$i]:-%f} » %f"
+ print -Pn "${yellow[$i]:-%f} » "
else
- print -Pn "%F{yellow} > %f"
+ print -Pn "%F{yellow} > "
fi
(( i += 6 ))
else
if [[ $colors -ge 256 ]]; then
- print -Pn "%F{065}$c%f"
+ print -Pn "%F{065}$c"
else
- print -Pn "%F{blue}$c%f"
+ print -Pn "%F{blue}$c"
fi
fi
done
+ print -Pn "%f"
}