some updates for editor handling

This commit is contained in:
Penelope Gwen 2026-06-23 15:05:33 -07:00 committed by Penelope Gwen
parent 5fe9106e86
commit eca51d6be4
2 changed files with 9 additions and 2 deletions

View file

@ -13,6 +13,7 @@ depends = []
"default/scripts" = "~/Scripts"
"default/config/starship.toml" = "~/.config/starship.toml"
"default/config/helix" = "~/.config/helix"
"default/config/nvim" = "~/.config/nvim"
"default/XCompose" = "~/.XCompose"
"default/bash_completion" = "~/.bash_completion"
"default/bash_completion.d" = "~/.bash_completion.d"

View file

@ -253,8 +253,14 @@ if type nvim >/dev/null 2>&1; then
GIT_EDITOR="$(which nvim)"
else
MISSING_CMDS+=("nvim")
if type hx >/dev/null 2>&1; then
EDITOR=$(which hx)
GIT_EDITOR="$(which hx)"
else
MISSING_CMDS+=("hx")
EDITOR=$(which nano)
GIT_EDITOR="$(which nano)"
fi
fi
export EDITOR