summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorratijas <me@ratijas.tk>2020-11-25 05:21:30 +0300
committerGitHub <noreply@github.com>2020-11-25 11:21:30 +0900
commitc61eb94b3f5f2a51e456501b1d7bdb39925f3b08 (patch)
tree26a8169a194f8d01d712298338b775b32f0199e2 /shell
parent3829eab1cf572d26e12dd5d96b1700c07c2905fc (diff)
[zsh] Declare variable as local before assignment (#2266)
Diffstat (limited to 'shell')
-rw-r--r--shell/key-bindings.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh
index 63306142..b55c4f4f 100644
--- a/shell/key-bindings.zsh
+++ b/shell/key-bindings.zsh
@@ -45,6 +45,7 @@ __fsel() {
-o -type d -print \
-o -type l -print 2> /dev/null | cut -b3-"}"
setopt localoptions pipefail no_aliases 2> /dev/null
+ local item
eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_CTRL_T_OPTS" $(__fzfcmd) -m "$@" | while read item; do
echo -n "${(q)item} "
done