refactor(zsh): better e function to launch $EDITOR

This commit is contained in:
Price Hiller 2024-03-04 11:56:56 -06:00
parent b36b8b143d
commit 1a47f36147
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -185,5 +185,9 @@ preexec() {
# Editor with single letter
e() {
if [[ "${EDITOR}" =~ "neovide*" ]]; then
neovide "${@}"
else
eval "${EDITOR} ${@}"
fi
}