ec779d5f737f0f70a7353bb0e78dc2d38606c8d9

Author
christianschmidt <cs@chrische.net>
Committer
christianschmidt <cs@chrische.net>
Date

Message

Update _pass to follow symlinks for completion

Based on: http://comments.gmane.org/gmane.comp.encryption.pass/235

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 () {