Skip to content
Snippets Groups Projects
Unverified Commit c61eb94b authored by ratijas's avatar ratijas Committed by GitHub
Browse files

[zsh] Declare variable as local before assignment (#2266)

parent 3829eab1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment