time: complete external time options only if available

This commit is contained in:
Johannes Altmanninger 2019-12-21 11:50:31 +01:00
parent f0df211f4c
commit 6dd9e50f82

View file

@ -1,3 +1,7 @@
if not command -q time
complete -c time -a "(__fish_complete_subcommand)" -d "Command"
exit
end
complete -c time -a "(__fish_complete_subcommand -- -o --output -f --format)" -d "Command"