summaryrefslogtreecommitdiff
path: root/.config/login.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/login.sh')
-rw-r--r--.config/login.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/login.sh b/.config/login.sh
index e3ada59..2687a8e 100644
--- a/.config/login.sh
+++ b/.config/login.sh
@@ -31,6 +31,11 @@ ln -sf -- "$XDG_RUNTIME_DIR/sessions" ~/.sessions
# Settings ###########################################################
+# Spell check
+if [[ -z "$DICTIONARY" ]] && [[ -n "$LANG" ]]; then
+ export DICTIONARY="${LANG%%.*}"
+fi
+
# Text editor
if [[ -f "$HOME/.selected_editor" ]]; then
. "$HOME/.selected_editor"