From 0784b765700da767e755bbbc06cbe4ac3d6d9471 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 3 May 2019 16:35:25 +0200 Subject: [PATCH] completions/env: Inhibit files (Also remove annoying "commmand" description) [ci skip] --- share/completions/env.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/completions/env.fish b/share/completions/env.fish index cbe6a6b97..2f939bd91 100644 --- a/share/completions/env.fish +++ b/share/completions/env.fish @@ -22,8 +22,10 @@ function __fish_complete_env_subcommand return 1 end +# Files aren't useful with env. They are correctly suggested with the command. +complete -c env -f -complete -c env -a "(__fish_complete_env_subcommand)" -d "Command" +complete -c env -a "(__fish_complete_env_subcommand)" # -d "Command" complete -c env -n 'not __fish_complete_env_subcommand' -a "(set -n)=" -x -d "Redefine variable" complete -c env -n 'not __fish_complete_env_subcommand' -s i -l ignore-environment -d "Start with an empty environment"