refactor(zsh): ensure editor path is present before setting $EDITOR

This commit is contained in:
Price Hiller 2023-11-05 13:48:26 -06:00
parent 4004b26319
commit 2bb4b7374d
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -117,6 +117,9 @@ if [[ -r "${usr/libexec/java_home}" ]]; then
export JAVA_HOME="$(/usr/libexec/java_home)"
fi
### BOB, Neovim Version Manager ###
export PATH="${PATH}:${XDG_DATA_HOME}/bob/nvim-bin"
### Editor ###
if command -v nvim >/dev/null 2>&1; then
export EDITOR=nvim
@ -174,5 +177,3 @@ export POWERSHELL_TELEMETRY_OPTOUT=true
export NPM_CONFIG_PREFIX="${HOME}/.npm-global"
export PATH="${PATH}:${NPM_CONFIG_PREFIX}/bin"
### BOB, Neovim Version Manager ###
export PATH="${PATH}:${XDG_DATA_HOME}/bob/nvim-bin"