zsh: Push resulting fe command to history
This commit is contained in:
parent
c3dc3fc482
commit
7c41a48fdf
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ fe() {
|
||||||
local files
|
local files
|
||||||
IFS=$'\n' files=($(fzf --query="$1" --multi --select-1 --exit-0))
|
IFS=$'\n' files=($(fzf --query="$1" --multi --select-1 --exit-0))
|
||||||
if [[ -n "${files}" ]]; then
|
if [[ -n "${files}" ]]; then
|
||||||
echo "\n${EDITOR:-vim} ${files[@]}"
|
print -s "${EDITOR:-vim}" "${files[@]}"
|
||||||
${EDITOR:-vim} "${files[@]}"
|
${EDITOR:-vim} "${files[@]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue