m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/pass.bash-completion4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/pass.bash-completion b/contrib/pass.bash-completion
index 36c0cf2..bd7ed61 100644
--- 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
}