mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Solves the issue from ae10133b5e the right
way using the actual xdg-terminal-exec package and provides resillient
fallbacks no matter what the user might do.
This also removes the need to restart after changing terminals at all.
fixes #2198
fixes #2329
fixes #2673
fixes #1754
13 lines
235 B
Bash
Executable File
13 lines
235 B
Bash
Executable File
#!/bin/bash
|
|
|
|
omarchy-cmd-present "$EDITOR" || EDITOR=nvim
|
|
|
|
case "$EDITOR" in
|
|
nvim | vim | nano | micro | hx | helix)
|
|
exec setsid uwsm-app -- xdg-terminal-exec "$EDITOR" "$@"
|
|
;;
|
|
*)
|
|
exec setsid uwsm-app -- "$EDITOR" "$@"
|
|
;;
|
|
esac
|