Don't set nerd font if over ssh or if fc-list is missing

This commit is contained in:
ViViDboarder 2025-01-06 22:28:08 -08:00
parent 13daee5e5b
commit 5753461a12

View File

@ -36,7 +36,7 @@ if status --is-interactive
eval ($HOME/bin/derive_colors.py --export --fish) eval ($HOME/bin/derive_colors.py --export --fish)
# Check for nerd font # Check for nerd font
if fc-list -q 'Symbols Nerd Font' if not set -q SSH_TTY ;and command -q fc-list ;and fc-list -q 'Symbols Nerd Font'
# Doesn't guarantee the font is in use, but it's a good guess # Doesn't guarantee the font is in use, but it's a good guess
set -gx TERM_NERD_FONT 1 set -gx TERM_NERD_FONT 1
end end