__fish_config_interactive: disable file completions for builtins

Calling `complete` once here is preferable to adding a bunch of
1 line files to be autoloaded.
This commit is contained in:
Aaron Gyes 2019-04-15 12:49:24 -07:00
parent 89b6b05f88
commit 92f4a009b3

View file

@ -164,6 +164,11 @@ function __fish_config_interactive -d "Initializations that should be performed
#
complete -c [ --wraps test
#
# Only a few builtins take filenames; initialize the rest with no file completions
#
complete -c(builtin -n | string match -rv 'source|cd|exec|realpath') --no-files
# Reload key bindings when binding variable change
function __fish_reload_key_bindings -d "Reload key bindings when binding variable change" --on-variable fish_key_bindings
# Make sure some key bindings are set