From ceacfb83a807ceb926fdefbaf72fa99de1fb6a40 Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 4 Dec 2006 21:58:38 +1000 Subject: [PATCH] Add completions for the env command darcs-hash:20061204115838-ac50b-f75e067b50ee2cbc8f735110c34892613c53c4d9.gz --- share/completions/env.fish | 10 ++++++++++ share/functions/__fish_complete_subcommand.fish | 1 + 2 files changed, 11 insertions(+) create mode 100644 share/completions/env.fish diff --git a/share/completions/env.fish b/share/completions/env.fish new file mode 100644 index 000000000..828ae8942 --- /dev/null +++ b/share/completions/env.fish @@ -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") + diff --git a/share/functions/__fish_complete_subcommand.fish b/share/functions/__fish_complete_subcommand.fish index 4af0e1c90..8fd9a6b92 100644 --- a/share/functions/__fish_complete_subcommand.fish +++ b/share/functions/__fish_complete_subcommand.fish @@ -23,6 +23,7 @@ function __fish_complete_subcommand -d "Complete subcommand" switch $i case '-*' + case '*=*' case '*' set had_cmd 1