From 7d73b40323435527418e5f487933591fa1baf88a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 6 Oct 2015 02:22:56 +0900 Subject: [PATCH] We can omit `local` since the code is run on the subshell --- Examples-(completion).md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples-(completion).md b/Examples-(completion).md index 1cef461..0346e8b 100644 --- a/Examples-(completion).md +++ b/Examples-(completion).md @@ -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/'