7cf34f5c34c97803a09af06cfd5e3e00a8d5f3ae
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #2276 from christianschmidt/master
Update _pass to follow symlinks for completion
Diff
1diff --git a/plugins/pass/_pass b/plugins/pass/_pass
2index f6c1a6c4bd36ebe5fd6e347412e730578cc73000..d8ec388280bb7667d5bdce80de6f229be8c3a454 100644
3--- a/plugins/pass/_pass
4+++ b/plugins/pass/_pass
5@@ -101,7 +101,7 @@ _pass_cmd_show () {
6 _pass_complete_entries_helper () {
7 local IFS=$'\n'
8 local prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
9- _values -C 'passwords' $(find "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print | sed -e "s#${prefix}.##" -e 's#\.gpg##' | sort)
10+ _values -C 'passwords' $(find -L "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print | sed -e "s#${prefix}.##" -e 's#\.gpg##' | sort)
11 }
12
13 _pass_complete_entries_with_subdirs () {