mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-06 03:10:35 +01:00
Merge 829b8f4888 into 5292fea2ba
This commit is contained in:
commit
99f9b20200
1 changed files with 4 additions and 3 deletions
|
|
@ -125,9 +125,10 @@ _pass_cmd_show () {
|
|||
_pass_complete_entries_helper () {
|
||||
local IFS=$'\n'
|
||||
local prefix
|
||||
zstyle -s ":completion:${rootcontext}:" 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#\\#\\\\#g' -e 's#:#\\:#g' | sort):-""}
|
||||
zstyle -s ":completion:${rootcontext}:" prefix prefix || prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
|
||||
local -a entries
|
||||
entries=(${$(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#\\#\\\\#g' | sort):-""})
|
||||
compadd -M 'l:|=* r:|=*' -a entries
|
||||
}
|
||||
|
||||
_pass_complete_entries_with_subdirs () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue