mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -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)
|
||||
_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/'
|
||||
|
||||
Reference in New Issue
Block a user