fish-shell/share/completions/for.fish
Johannes Altmanninger 29f35d6cdf completion: adopt commandline -x replacing deprecated -o
This gives us more accurate completions because completion scripts get
expanded paths
2024-01-27 09:28:06 +01:00

4 lines
227 B
Fish

complete -c for -n 'test (count (commandline -xpc)) -eq 1' -s h -l help -d 'Display help and exit'
complete -c for -n 'test (count (commandline -xpc)) -eq 1' -f
complete -c for -n 'test (count (commandline -xpc)) -eq 2' -xa in