Change $EDITOR to nvim

This commit is contained in:
Ismo Vuorinen
2022-12-23 21:45:53 +02:00
parent fe6f070beb
commit 8c8436254e
2 changed files with 6 additions and 1 deletions

View File

@@ -68,9 +68,10 @@ alias code_scanner='docker run \
alias composerUp='composer global update'
alias npmUp='npm -g up'
alias zedit='code ~/.zshrc ~/.alias'
alias zedit='$EDITOR ~/.zshrc ~/.alias'
if [[ -f "$HOME/.aliases.local" ]]; then
# shellcheck disable=SC1091
source "$HOME/.aliases.local"
fi

4
zshrc
View File

@@ -27,6 +27,10 @@ if command -v go &> /dev/null; then
fi
fi
if command -v nvim &> /dev/null; then
export EDITOR="nvim"
fi
LOCAL_BIN="$HOME/.local/bin"
COMPOSER_DIR="$HOME/.composer/vendor/bin"
export PATH="$LOCAL_BIN:$COMPOSER_DIR:$PATH"