m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

We can omit local since the code is run on the subshell

Junegunn Choi
2015-10-06 02:22:56 +09:00
parent e9507367fe
commit 7d73b40323

@@ -38,8 +38,8 @@ Examples
# pass completion suggested by @d4ndo (#362)
_fzf_complete_pass() {
_fzf_complete '+m' "$@" < <(
local pwdir=${PASSWORD_STORE_DIR-~/.password-store/}
local stringsize="${#pwdir}"
pwdir=${PASSWORD_STORE_DIR-~/.password-store/}
stringsize="${#pwdir}"
find "$pwdir" -name "*.gpg" -print |
cut -c "$((stringsize + 1))"- |
sed -e 's/\(.*\)\.gpg/\1/'