mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Add completions for the env command
darcs-hash:20061204115838-ac50b-f75e067b50ee2cbc8f735110c34892613c53c4d9.gz
This commit is contained in:
parent
d736c8cca6
commit
ceacfb83a8
10
share/completions/env.fish
Normal file
10
share/completions/env.fish
Normal 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")
|
||||
|
@ -23,6 +23,7 @@ function __fish_complete_subcommand -d "Complete subcommand"
|
||||
|
||||
switch $i
|
||||
case '-*'
|
||||
case '*=*'
|
||||
|
||||
case '*'
|
||||
set had_cmd 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user