fish_config: Fully erase existing globals before replacing

We only erase existing globals for some of the theme-related variables
but not for all the `known_colors`, causing `fish_config` to still emit
warnings for these if saving a theme choice after trying it.
This commit is contained in:
Mahmoud Al-Qudsi 2022-10-12 21:21:25 -05:00
parent e6c30a0e5d
commit 835230a82f

View file

@ -267,6 +267,9 @@ function fish_config --description "Launch fish's web based configuration"
contains -- $c $have_colors
and continue
# Erase conflicting global variables so we don't get a warning and
# so changes are observed immediately.
set -eg $c
set $scope $c
end