summaryrefslogtreecommitdiff
path: root/.config/login.d/10_selected-editor.sh
blob: f176b8a2007211c419e25d8fd3e935dd92902c54 (plain)
1
2
3
4
5
6
7
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