summaryrefslogtreecommitdiff
path: root/.config/login.d/10_selected-editor.sh
blob: c1c18fb74ac74bf11f4d061533cb48e826936c9e (plain)
1
2
3
4
5
6
7
8
9
10
11
# PAM seems to be setting EDITOR...
if [[ $EDITOR = /usr/bin/vi ]]; then
	unset EDITOR
fi
if [[ -f "$HOME/.selected_editor" ]]; then
	. "$HOME/.selected_editor"
	export SELECTED_EDITOR
	export ALTERNATE_EDITOR
	export EDITOR="${EDITOR:-$SELECTED_EDITOR}"
	export VISUAL="${VISUAL:-$SELECTED_EDITOR}"
fi