some updates for editor handling
This commit is contained in:
parent
5fe9106e86
commit
eca51d6be4
2 changed files with 9 additions and 2 deletions
|
|
@ -13,6 +13,7 @@ depends = []
|
||||||
"default/scripts" = "~/Scripts"
|
"default/scripts" = "~/Scripts"
|
||||||
"default/config/starship.toml" = "~/.config/starship.toml"
|
"default/config/starship.toml" = "~/.config/starship.toml"
|
||||||
"default/config/helix" = "~/.config/helix"
|
"default/config/helix" = "~/.config/helix"
|
||||||
|
"default/config/nvim" = "~/.config/nvim"
|
||||||
"default/XCompose" = "~/.XCompose"
|
"default/XCompose" = "~/.XCompose"
|
||||||
"default/bash_completion" = "~/.bash_completion"
|
"default/bash_completion" = "~/.bash_completion"
|
||||||
"default/bash_completion.d" = "~/.bash_completion.d"
|
"default/bash_completion.d" = "~/.bash_completion.d"
|
||||||
|
|
|
||||||
|
|
@ -253,8 +253,14 @@ if type nvim >/dev/null 2>&1; then
|
||||||
GIT_EDITOR="$(which nvim)"
|
GIT_EDITOR="$(which nvim)"
|
||||||
else
|
else
|
||||||
MISSING_CMDS+=("nvim")
|
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)
|
EDITOR=$(which nano)
|
||||||
GIT_EDITOR="$(which nano)"
|
GIT_EDITOR="$(which nano)"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export EDITOR
|
export EDITOR
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue