This website requires JavaScript.
Explore
Help
Sign In
Mirrors
/
fish-shell
Watch
2
Star
0
Fork
You've already forked fish-shell
0
mirror of
https://github.com/fish-shell/fish-shell
synced
2025-01-01 07:38:46 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
6ebbe5a450
fish-shell
/
share
/
functions
/
__fish_complete_external_command.fish
4 lines
73 B
Fish
Raw
Normal View
History
Unescape
Escape
Fix completion for builtins (with subcommands) Presently the completion engine ignores builtins that are part of the fish syntax. This can be a problem when completing a string that was based on the output of `commandline -p`. This changes completions to treat these builtins like any other command. This also disables generic (filename) completion inside comments and after strings that do not tokenize. Additionally, comments are stripped off the output of `commandline -p`. Fixes #5415 Fixes #2705
2019-10-29 12:32:26 +00:00
function
__fish_complete_external_command
Restore directory completions for subcommands Fixes #6798 This re-adds some false positives: functions, builtins and abbreviations are suggested after commands like sudo but I don't think anyone had complained about that.
2020-03-24 19:10:08 +00:00
complete
-C
"
$argv
[1]
"
Fix completion for builtins (with subcommands) Presently the completion engine ignores builtins that are part of the fish syntax. This can be a problem when completing a string that was based on the output of `commandline -p`. This changes completions to treat these builtins like any other command. This also disables generic (filename) completion inside comments and after strings that do not tokenize. Additionally, comments are stripped off the output of `commandline -p`. Fixes #5415 Fixes #2705
2019-10-29 12:32:26 +00:00
end
Reference in a new issue
Copy permalink