diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-08 22:38:05 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-08 22:38:05 +1300 |
commit | d0105852a4ae3f3531dcd0ab4602e2ddbca0a093 (patch) | |
tree | a707a87ee1e67e70d88423029935c184ffdc2a08 /bash/bash_completion.d | |
parent | Move filetype.vim helper funcs into autoload (diff) | |
download | dotfiles-d0105852a4ae3f3531dcd0ab4602e2ddbca0a093.tar.gz dotfiles-d0105852a4ae3f3531dcd0ab4602e2ddbca0a093.zip |
Correct completion for deep pass(1) directories
I misunderstood how globstar worked.
Diffstat (limited to 'bash/bash_completion.d')
-rw-r--r-- | bash/bash_completion.d/pass.bash | 2 |
1 files changed, 1 insertions, 1 deletions
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 |