fix editor choice in bashrc

master
lub 4 years ago
parent f38e811e2c
commit 4172f1e56f

@ -10,8 +10,8 @@ export HISTFILESIZE=10000
export PATH="$HOME/.bin:$PATH"
# define a default editor
if [ -x "$(command -v caode)" ]; then
export EDITOR=code
if [ -x "$(command -v code)" ]; then
export EDITOR='code -w'
elif [ -x "$(command -v vim)" ]; then
export EDITOR=vim
elif [ -x "$(command -v vi)" ]; then

Loading…
Cancel
Save