mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-13 00:17:25 +00: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:
parent
89b6b05f88
commit
92f4a009b3
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue