refactor(zsh): better e
function to launch $EDITOR
This commit is contained in:
parent
b36b8b143d
commit
1a47f36147
@ -185,5 +185,9 @@ preexec() {
|
|||||||
|
|
||||||
# Editor with single letter
|
# Editor with single letter
|
||||||
e() {
|
e() {
|
||||||
eval "${EDITOR} ${@}"
|
if [[ "${EDITOR}" =~ "neovide*" ]]; then
|
||||||
|
neovide "${@}"
|
||||||
|
else
|
||||||
|
eval "${EDITOR} ${@}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user