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