summaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-06-09 10:19:31 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-06-09 10:19:31 +0300
commit414ca22cad66eb4cca92a6e2f912a7a4628bbdfd (patch)
treeebf3bcfdcef73c644d5c425371e275cc0de2caf0 /internal/p10k.zsh
parentbefe57dede85e4d56c6cfb05ec84bb0dc306ca33 (diff)
minor cleanup
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index a95e9a07..751bf756 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -1685,9 +1685,7 @@ function _p9k_vcs_style() {
_P9K_RETVAL=""
return
fi
- if [[ $color == <-> ]]; then
- color=${(l:3::0:)color}
- else
+ if [[ $color != <-> ]]; then
color=$__P9K_COLORS[${${${color#bg-}#fg-}#br}]
if [[ -z $color ]]; then
_P9K_RETVAL=""