make editor choice more flexibel

master
lub 5 years ago
parent 1fefd9d91a
commit 36282a4463

@ -9,7 +9,14 @@ export HISTSIZE=10000
export HISTFILESIZE=10000 export HISTFILESIZE=10000
export PATH="$HOME/.bin:$PATH" export PATH="$HOME/.bin:$PATH"
export EDITOR=vim # define a default editor
if [ -x "$(command -v caode)" ]; then
export EDITOR=code
elif [ -x "$(command -v vim)" ]; then
export EDITOR=vim
elif [ -x "$(command -v vi)" ]; then
export EDITOR=vi
fi
#enable wayland #enable wayland
export QT_QPA_PLATFORM=wayland-egl export QT_QPA_PLATFORM=wayland-egl

Loading…
Cancel
Save