From bdc0960d68d2ab6e4f078356092f97ccae15f0b4 Mon Sep 17 00:00:00 2001 From: Brian Mattern Date: Thu, 13 Sep 2012 07:59:58 +0200 Subject: 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` -> `pass amazon.com/user at domain.com` while `pass goo` -> `pass google.com/` (previously, the amazon completion would have stopped at amazon.com despite only a single entry existing) --- contrib/pass.zsh-completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') 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` } -- cgit v1.2.3