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.
This commit is contained in:
Pedro A. Aranda Gutiérrez 2025-01-09 18:15:12 +01:00 committed by GitHub
parent 5c17bcd21f
commit 0047214255
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -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