From 004721425507d5964d996c5c127c95b5aeabed9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20A=2E=20Aranda=20Guti=C3=A9rrez?= Date: Thu, 9 Jan 2025 18:15:12 +0100 Subject: [PATCH] Allow user to define CURRENT_FG for agnoster.zsh-theme Some terminal themes make CURRENT_FG black/white selection sub-optimal. Allow user to define CURRENT_FG for best legibility in the directory part. --- themes/agnoster.zsh-theme | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index c2a542163..6b2c4c774 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -34,9 +34,10 @@ CURRENT_BG='NONE' +# Set CURRENT_FG unless already set in .zshenv case ${SOLARIZED_THEME:-dark} in - light) CURRENT_FG='white';; - *) CURRENT_FG='black';; + light) CURRENT_FG=${CURRENT_FG:-white};; + *) CURRENT_FG=${CURRENT_FG:-black};; esac # Special Powerline characters