Remove interactive-only completion hacks

I don't think these characters cause problems in filenames?
This commit is contained in:
Johannes Altmanninger 2024-12-11 09:13:50 +01:00
parent ab4606430e
commit 7e5af914be
3 changed files with 2 additions and 8 deletions

1
share/completions/!.fish Normal file
View file

@ -0,0 +1 @@
complete ! --wraps not

1
share/completions/[.fish Normal file
View file

@ -0,0 +1 @@
complete [ --wraps test

View file

@ -128,14 +128,6 @@ end" >$__fish_config_dir/config.fish
complete -x -p "/etc/init.d/*" -a reload --description 'Reload service configuration' complete -x -p "/etc/init.d/*" -a reload --description 'Reload service configuration'
end end
#
# We want to show our completions for the [ (test) builtin, but
# we don't want to create a [.fish. test.fish will not be loaded until
# the user tries [ interactively.
#
complete -c [ --wraps test
complete -c ! --wraps not
# #
# Only a few builtins take filenames; initialize the rest with no file completions # Only a few builtins take filenames; initialize the rest with no file completions
# #