diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-07-24 12:37:03 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-07-24 12:37:03 +0200 |
commit | 186d707cbce6791b385db332bdb8bd0298f4c679 (patch) | |
tree | 4001a508a049671b4749382d4a34d6fd3a16c32e /etc | |
parent | 2a090eea709f59f196d64cc357e60d74aadde53b (diff) |
etc/completions/_envstore: Complete the shell environment
Diffstat (limited to 'etc')
-rw-r--r-- | etc/completions/_envstore | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/etc/completions/_envstore b/etc/completions/_envstore index 4bd251c..8dfa1a3 100644 --- a/etc/completions/_envstore +++ b/etc/completions/_envstore @@ -1,14 +1,12 @@ #compdef envstore ## vim:ft=zsh -local values +local arguments -values=( - # TODO there must be a better solution, like (*)clear... - '(eval rm save show)clear[Clear saved variables]' - '(clear rm save show)eval[Produce output for evaluation]' - '(clear eval save show)rm[Remove variable]:variable' - '(clear eval rm show)save[Save variable]:variable' - '(clear eval rm save)show[Show saved variables]' +arguments=( + ':action:(clear eval rm save show)' + ':variable:_parameters' + '' ) -_values -s ' ' -S ' ' -w 'envstore' $values + +_arguments -s $arguments |