Browse Source

[bash]: set EDITOR to (n)vim.

master
Fredrik Ekre 4 years ago
parent
commit
df0ff306a4
  1. 7
      .bashrc.dotfiles

7
.bashrc.dotfiles

@ -38,3 +38,10 @@ if command -v direnv &> /dev/null ; then
eval "$(direnv hook bash)" eval "$(direnv hook bash)"
# alias tmux='direnv exec / tmux' # alias tmux='direnv exec / tmux'
fi fi
# Set the editor
if command -v nvim &> /dev/null; then
export EDITOR=nvim
elif command -v vim &> /dev/null; then
export EDITOR=vim
fi

Loading…
Cancel
Save