mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
16 lines
421 B
Bash
Executable File
16 lines
421 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Launch the default editor as determined by $EDITOR (set via ~/.config/uwsm/default) (or nvim if missing).
|
|
# Starts suitable editors in a terminal window and otherwise as a regular application.
|
|
|
|
omarchy-cmd-present "$EDITOR" || EDITOR=nvim
|
|
|
|
case "$EDITOR" in
|
|
nvim | vim | nano | micro | hx | helix | fresh)
|
|
exec omarchy-launch-tui "$EDITOR" "$@"
|
|
;;
|
|
*)
|
|
exec setsid uwsm-app -- "$EDITOR" "$@"
|
|
;;
|
|
esac
|