aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/gpg.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/gpg.bash')
-rw-r--r--bash/bashrc.d/gpg.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/gpg.bash b/bash/bashrc.d/gpg.bash
index cea4a7cb..c2340520 100644
--- a/bash/bashrc.d/gpg.bash
+++ b/bash/bashrc.d/gpg.bash
@@ -25,7 +25,7 @@ _gpg() {
local option
while read -r option ; do
[[ $option == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue
- COMPREPLY=("${COMPREPLY[@]}" "$option")
+ COMPREPLY[${#COMPREPLY[@]}]=$option
done < <(gpg --dump-options 2>/dev/null)
}
complete -F _gpg -o default gpg