summaryrefslogtreecommitdiff
path: root/.config/login.d/10_selected-editor.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-01-29 01:19:57 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-01-29 01:19:57 -0500
commit2a6dc16a75f4d7beed631d97a99b6a1fc82c4e79 (patch)
treec4fbdc91309529699c7550b691ba047a00aad0a8 /.config/login.d/10_selected-editor.sh
parentf565769cdc68b24343ce2d3dbf4e322fad3a6c20 (diff)
split login.sh into login.d
Diffstat (limited to '.config/login.d/10_selected-editor.sh')
-rw-r--r--.config/login.d/10_selected-editor.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/login.d/10_selected-editor.sh b/.config/login.d/10_selected-editor.sh
new file mode 100644
index 0000000..f176b8a
--- /dev/null
+++ b/.config/login.d/10_selected-editor.sh
@@ -0,0 +1,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