From f76ba69f7062676a41bb7fb8214b56dd60b42f72 Mon Sep 17 00:00:00 2001 From: killeik <69602482+killeik@users.noreply.github.com> Date: Sun, 2 Nov 2025 22:28:41 +0300 Subject: [PATCH] Make omarchy-launch-editor check that setted $EDITOR exists (#3072) --- bin/omarchy-launch-editor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-launch-editor b/bin/omarchy-launch-editor index dbe84cfd..81879626 100755 --- a/bin/omarchy-launch-editor +++ b/bin/omarchy-launch-editor @@ -1,6 +1,8 @@ #!/bin/bash -case "${EDITOR:-nvim}" in +omarchy-cmd-present "$EDITOR" || EDITOR=nvim + +case "$EDITOR" in nvim | vim | nano | micro | hx | helix) exec setsid uwsm-app -- "$TERMINAL" -e "$EDITOR" "$@" ;;