From 47c08d8c06f45665e8dd75d14c4f5bdb0633e09f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 23 Aug 2008 16:44:39 +0200 Subject: envstore completion: Don't complete array parameters since envstore can't handle them --- provides/zsh/completions/_envstore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'provides') 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))' -- cgit v1.2.3