mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-01 10:11:14 -03:00
__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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user