completions/env: Inhibit files

(Also remove annoying "commmand" description)

[ci skip]
This commit is contained in:
Fabian Homborg 2019-05-03 16:35:25 +02:00
parent e91eb85949
commit 0784b76570

View file

@ -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"