fish-shell/share/completions/env.fish
axel 6a60377e02 Add -u switch to completions which can have unknown switches or which are incomplete
darcs-hash:20070128032652-ac50b-dae70e7b2efddbc757aae8bc7d1884ff5e010621.gz
2007-01-28 13:26:52 +10:00

12 lines
557 B
Fish

complete -c env -a "(set -n)=" -x --description "Redefine variable"
complete -c env -a "(__fish_complete_subcommand -- -u --unset)" --description "Command"
complete -c env -s i -l ignore-environment --description "Start with an empty environment"
complete -c env -s u -l unset --description "Remove variable from the environment" -x -a "(set -n)"
complete -c env -l help --description "Display help and exit"
complete -c env -l version --description "Display version and exit"
# Since env runs subcommands, it can accept any switches
complete -c env -u