diff --git a/.dotter/global.toml b/.dotter/global.toml index 596611b..faff295 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -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" diff --git a/default/bashrc.d/default b/default/bashrc.d/default index 0bddbde..3300eca 100755 --- a/default/bashrc.d/default +++ b/default/bashrc.d/default @@ -253,8 +253,14 @@ if type nvim >/dev/null 2>&1; then GIT_EDITOR="$(which nvim)" else MISSING_CMDS+=("nvim") - EDITOR=$(which nano) - GIT_EDITOR="$(which nano)" + 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