1
0
Fork 0

zsh: Push resulting fe command to history

This commit is contained in:
Jeremy Kaplan 2020-06-22 22:57:05 -07:00
commit 7c41a48fdf

View file

@ -34,7 +34,7 @@ fe() {
local files
IFS=$'\n' files=($(fzf --query="$1" --multi --select-1 --exit-0))
if [[ -n "${files}" ]]; then
echo "\n${EDITOR:-vim} ${files[@]}"
print -s "${EDITOR:-vim}" "${files[@]}"
${EDITOR:-vim} "${files[@]}"
fi
}