password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit b947ef162265060fc79933403968f0fa8d37e214
parent c2d28accf5c79c7929a90506061c70ffa70cca86
Author: Brian Mattern <rephorm@rephorm.com>
Date:   Fri, 21 Sep 2012 14:40:43 -0700

Append to COMPREPLY instead of inserting by index

Diffstat:
Mcontrib/pass.bash-completion | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/contrib/pass.bash-completion b/contrib/pass.bash-completion @@ -10,7 +10,6 @@ _pass_complete_entries () { autoexpand=${1:-0} local IFS=$'\n' - local i=0 for item in $(compgen -f $prefix$cur); do if [[ $item == $prefix.* ]]; then continue @@ -30,8 +29,7 @@ _pass_complete_entries () { fi done item="${item%$suffix}" - COMPREPLY[$i]=$(printf "%q" "${item#$prefix}" ) - (( i++ )) + COMPREPLY+=($(printf "%q" "${item#$prefix}" )) done }