summaryrefslogtreecommitdiff
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
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)
-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`
}
to throw the error: "Not enough arguments for format string". For example, `pass rename foo bar` outputs: [master c33f7a9] Rename foo to bar. 1 file changed, 0 insertions(+), 0 deletions(-) rename foo.gpg => bar.gpg (100%) 2015-07-24passmenu: Space to tabsChris Down1-2/+2 It seems this file doesn't use spaces any more. 2015-07-24passmenu: Only pass first line to xdotoolChris Down1-1/+3 In 87ec1489fa98, I forgot that some people like to store more than one line in their password files. We should only pass the first line to xdotool. 2015-07-24passmenu: Read from stdin when using xdotool to type passwordChris Down1-1/+1 This works around a bug in xdotool parsing when encountering quotes, see https://github.com/jordansissel/xdotool/issues/72. Thanks to Gerd Wachsmuth for the report. 2015-05-26emacs: Make `password-store-password-length' customizableNicolas Petton1-3/+10