Add completions for the env command

darcs-hash:20061204115838-ac50b-f75e067b50ee2cbc8f735110c34892613c53c4d9.gz
This commit is contained in:
axel 2006-12-04 21:58:38 +10:00
parent d736c8cca6
commit ceacfb83a8
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,10 @@
complete -c env -a "(set -n)=" -x -d (N_ "Redefine variable")
complete -c env -a "(__fish_complete_subcommand -- -u --unset)" -d (N_ "Command")
complete -c env -s i -l ignore-environment -d (N_ "Start with an empty environment")
complete -c env -s u -l unset -d (N_ "Remove variable from the environment") -x -a "(set -n)"
complete -c env -l help -d (N_ "Display help and exit")
complete -c env -l version -d (N_ "Display version and exit")

View File

@ -23,6 +23,7 @@ function __fish_complete_subcommand -d "Complete subcommand"
switch $i
case '-*'
case '*=*'
case '*'
set had_cmd 1