Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
f2f078a1
Unverified
Commit
f2f078a1
authored
Aug 09, 2018
by
Marc Cornellà
Committed by
GitHub
Aug 09, 2018
Browse files
pass: update completion (2018-08-03)
parent
2c1ff85b
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/pass/_pass
View file @
f2f078a1
...
@@ -6,11 +6,17 @@
...
@@ -6,11 +6,17 @@
# Brian Mattern <rephorm@rephorm.com>
# Brian Mattern <rephorm@rephorm.com>
# Jason A. Donenfeld <Jason@zx2c4.com>.
# Jason A. Donenfeld <Jason@zx2c4.com>.
# All Rights Reserved.
# All Rights Reserved.
#
# This file is licensed under the GPLv2+.
# This file is licensed under the GPLv2+.
# Please visit https://git.zx2c4.com/password-store/tree/COPYING for more information.
# Please visit https://git.zx2c4.com/password-store/tree/COPYING for more information.
# If you use multiple repositories, you can configure completion like this:
#
#
# Oh my zsh plugin maintainer: Santiago Borrazás <sanbor@gmail.com>
# compdef _pass workpass
# zstyle ':completion::complete:workpass::' prefix "$HOME/work/pass"
# workpass() {
# PASSWORD_STORE_DIR=$HOME/work/pass pass $@
# }
_pass () {
_pass () {
...
@@ -117,8 +123,9 @@ _pass_cmd_show () {
...
@@ -117,8 +123,9 @@ _pass_cmd_show () {
}
}
_pass_complete_entries_helper () {
_pass_complete_entries_helper () {
local IFS=$'\n'
local IFS=$'\n'
local prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
local prefix
_values -C 'passwords' ${$(find -L "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print 2>/dev/null | sed -e "s#${prefix}/\{0,1\}##" -e 's#\.gpg##' | sort):-""}
zstyle -s ":completion:${curcontext}:" prefix prefix || prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
_values -C 'passwords' ${$(find -L "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print 2>/dev/null | sed -e "s#${prefix}/\{0,1\}##" -e 's#\.gpg##' -e 's#\\#\\\\#' | sort):-""}
}
}
_pass_complete_entries_with_subdirs () {
_pass_complete_entries_with_subdirs () {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment