Skip to content

Commit

Permalink
zsh: set EDITOR and VISUAL to nvim, if it's available
Browse files Browse the repository at this point in the history
  • Loading branch information
yacoob committed Dec 13, 2024
1 parent b44038e commit 0ecd28b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion home/dot_zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export TZ='Europe/Dublin'
# general
export EMAIL="[email protected]"
export TMPDIR=/tmp
if (( $+commands[vim] )); then
if (( $+commands[nvim] )); then
export EDITOR=nvim
export VISUAL=nvim
elif (( $+commands[vim] )); then
export EDITOR=vim
export VISUAL=vim
elif (( $+commands[vi] )); then
Expand Down

0 comments on commit 0ecd28b

Please sign in to comment.