mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
We can omit local since the code is run on the subshell
@@ -38,8 +38,8 @@ Examples
|
|||||||
# pass completion suggested by @d4ndo (#362)
|
# pass completion suggested by @d4ndo (#362)
|
||||||
_fzf_complete_pass() {
|
_fzf_complete_pass() {
|
||||||
_fzf_complete '+m' "$@" < <(
|
_fzf_complete '+m' "$@" < <(
|
||||||
local pwdir=${PASSWORD_STORE_DIR-~/.password-store/}
|
pwdir=${PASSWORD_STORE_DIR-~/.password-store/}
|
||||||
local stringsize="${#pwdir}"
|
stringsize="${#pwdir}"
|
||||||
find "$pwdir" -name "*.gpg" -print |
|
find "$pwdir" -name "*.gpg" -print |
|
||||||
cut -c "$((stringsize + 1))"- |
|
cut -c "$((stringsize + 1))"- |
|
||||||
sed -e 's/\(.*\)\.gpg/\1/'
|
sed -e 's/\(.*\)\.gpg/\1/'
|
||||||
|
|||||||
Reference in New Issue
Block a user