diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-08-23 16:44:39 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-08-23 16:44:39 +0200 |
commit | 47c08d8c06f45665e8dd75d14c4f5bdb0633e09f (patch) | |
tree | 35da8365aadf03fe3ce8f7057edbd658d526011d /provides/zsh/completions | |
parent | 25e1e56306943311bfb6d5e40ce5e2282792ef1b (diff) |
envstore completion: Don't complete array parameters since envstore can't handle them
Diffstat (limited to 'provides/zsh/completions')
-rw-r--r-- | provides/zsh/completions/_envstore | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/provides/zsh/completions/_envstore b/provides/zsh/completions/_envstore index 65c85c1..700fc7a 100644 --- a/provides/zsh/completions/_envstore +++ b/provides/zsh/completions/_envstore @@ -14,8 +14,12 @@ arguments_action=( arguments_action_nofile=( '1:action:(save)' ) + +# envstare can't handle arrays, so only complete scalars and integers. +# Also, don't complete parameters marked 'special', since they're usually +# relative to the current shell arguments_save=( - '2:parameter:_parameters -g \*-export' + '2:parameter:_parameters -g "(scalar|integer)*export"' ) arguments_rm=( '2:parameter:($(envstore eval -e | cut -d " " -f 2 | cut -d "=" -f 1))' |