From d0105852a4ae3f3531dcd0ab4602e2ddbca0a093 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 8 Dec 2018 22:38:05 +1300 Subject: Correct completion for deep pass(1) directories I misunderstood how globstar worked. --- bash/bash_completion.d/pass.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/bash_completion.d/pass.bash b/bash/bash_completion.d/pass.bash index 5a6e0b6c..760e774e 100644 --- a/bash/bash_completion.d/pass.bash +++ b/bash/bash_completion.d/pass.bash @@ -30,7 +30,7 @@ _pass() { # Try to iterate into subdirs, use depth search with ** if available if shopt -s globstar 2>/dev/null ; then - for entry in "$pass_dir"/"$2"**/*.gpg ; do + for entry in "$pass_dir"/"$2"*/**/*.gpg ; do entries[ei++]=$entry done else -- cgit v1.2.3