dotfiles/dot_config/bash/editor.sh

9 lines
128 B
Bash

EDITOR=vi
if command -v hx > /dev/null ; then
EDITOR=hx
elif command -v vim > /dev/null ; then
EDITOR=vim
fi
export EDITOR