mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-08 08:01:15 -03:00
Allow file completions for more builtins
- contains - count (for `count *`) - echo - printf - random (for `random choice`) Fixes #6520
This commit is contained in:
Notes:
David Adam
2020-04-23 23:08:20 +08:00
Actually fixes #6856
@@ -168,7 +168,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||
#
|
||||
# Only a few builtins take filenames; initialize the rest with no file completions
|
||||
#
|
||||
complete -c(builtin -n | string match -rv '(\.|:|source|cd|exec|realpath|set|\\[|test|for)') --no-files
|
||||
complete -c(builtin -n | string match -rv '(\.|:|source|cd|contains|count|echo|exec|printf|random|realpath|set|\\[|test|for)') --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
|
||||
|
||||
Reference in New Issue
Block a user