Move $__fish_initialized to config_interactive

This is no longer used in share/config.fish, and it's quite cheesy.

The only thing we use it for is defaulting the colorscheme.
This commit is contained in:
Fabian Homborg 2022-01-09 14:28:41 +01:00
parent 49c16cc9a6
commit fb283cfe4a
2 changed files with 5 additions and 5 deletions

View file

@ -8,11 +8,6 @@ set -g IFS \n\ \t
set -qg __fish_added_user_paths
or set -g __fish_added_user_paths
# For one-off upgrades of the fish version, see __fish_config_interactive.fish
if not set -q __fish_initialized
set -U __fish_initialized 0
end
#
# Create the default command_not_found handler
#

View file

@ -9,6 +9,11 @@ function __fish_config_interactive -d "Initializations that should be performed
return
end
# For one-off upgrades of the fish version
if not set -q __fish_initialized
set -U __fish_initialized 0
end
set -g __fish_config_interactive_done
set -g __fish_active_key_bindings