summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorBrian Mattern <rephorm@rephorm.com>2012-09-13 07:59:58 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-09-13 07:59:58 +0200
commitbdc0960d68d2ab6e4f078356092f97ccae15f0b4 (patch)
treebfd361e143bd972745f2115ab6f375b6a8ecc8cc /contrib
parent3955cb4678948013fc7e871574f7eef7cc556c99 (diff)
downloadpass-bdc0960d68d2ab6e4f078356092f97ccae15f0b4.tar.gz
pass-bdc0960d68d2ab6e4f078356092f97ccae15f0b4.tar.bz2
pass-bdc0960d68d2ab6e4f078356092f97ccae15f0b4.zip
Skip directories in zsh completion
this allows the full entry to be completed with a single tab if there is only one entry in a folder e.g., given: amazon.com user at domain.com google.com user1 user2 `pass am<tab>` -> `pass amazon.com/user at domain.com` while `pass goo<tab>` -> `pass google.com/` (previously, the amazon completion would have stopped at amazon.com despite only a single entry existing)
Diffstat (limited to '')
-rw-r--r--contrib/pass.zsh-completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pass.zsh-completion b/contrib/pass.zsh-completion
index 67ed2f3..e0aa7e9 100644
--- a/contrib/pass.zsh-completion
+++ b/contrib/pass.zsh-completion
@@ -69,5 +69,5 @@ _pass_cmd_rm () {
}
_get_stored_pwd () {
- compadd `find ~/.password-store \( -name .git -o -name .gpg-id \) -prune -o -print | sed 's#.*\.password-store*.##'| sed 's#\.gpg##' | sort`
+ compadd `find ~/.password-store \( -name .git -o -name .gpg-id \) -prune -o -type f -print | sed 's#.*\.password-store*.##'| sed 's#\.gpg##' | sort`
}