mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Allow custom editor, like we do custom terminal (#1697)
This commit is contained in:
committed by
GitHub
parent
7e1c88b932
commit
bf0c2cc9a5
13
bin/omarchy-launch-editor
Executable file
13
bin/omarchy-launch-editor
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
case "$EDITOR" in
|
||||
nvim | vim | nano | micro | hx)
|
||||
exec setsid uwsm app -- "$TERMINAL" -e "$EDITOR" "$@"
|
||||
;;
|
||||
code | codium | subl | gedit | kate | zeditor)
|
||||
exec setsid uwsm app -- "$EDITOR" "$@"
|
||||
;;
|
||||
*)
|
||||
exec setsid uwsm app -- "$TERMINAL" -e nvim "$@"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user