mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 20:47:47 +00:00
* fix: Default to nvim if $EDITOR not set in omarchy-launch-editor Refs: https://github.com/basecamp/omarchy/pull/1697/files#r2352727184 * fix: Handle $EDITOR as GUI application by default If we do not definitively handle $EDITOR as a known TUI editor, assume a GUI editor and launch without using the terminal. Refs: https://github.com/basecamp/omarchy/pull/1697/files#r2352727184
11 lines
186 B
Bash
Executable File
11 lines
186 B
Bash
Executable File
#!/bin/bash
|
|
|
|
case "${EDITOR:-nvim}" in
|
|
nvim | vim | nano | micro | hx)
|
|
exec setsid uwsm app -- "$TERMINAL" -e "$EDITOR" "$@"
|
|
;;
|
|
*)
|
|
exec setsid uwsm app -- "$EDITOR" "$@"
|
|
;;
|
|
esac
|