mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
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:
parent
e6c30a0e5d
commit
835230a82f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue