From 6dd9e50f82f49dc136b22f658144a954255c30ad Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 21 Dec 2019 11:50:31 +0100 Subject: [PATCH] time: complete external time options only if available --- share/completions/time.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/completions/time.fish b/share/completions/time.fish index fa4bba835..77891f435 100644 --- a/share/completions/time.fish +++ b/share/completions/time.fish @@ -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"