aboutsummaryrefslogtreecommitdiffstats
path: root/.zsh.after/export.zsh
diff options
context:
space:
mode:
Diffstat (limited to '.zsh.after/export.zsh')
-rw-r--r--.zsh.after/export.zsh14
1 files changed, 12 insertions, 2 deletions
diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh
index f06613e..fafea00 100644
--- a/.zsh.after/export.zsh
+++ b/.zsh.after/export.zsh
@@ -4,8 +4,18 @@ if [[ -n $TMUX ]];then
else
export TERM="xterm-color"
fi
-# use de_DE.UTF-8 to get 24h format
-export LC_TIME=de_DE.UTF-8
+
+
+available_locale=$(locale -a|tr '\n' ' ')
+if test "${available_locale#*en_DK.utf8}" != $available_locale; then
+ export LC_TIME="en_DK.UTF-8"
+fi
+if test "${available_locale#*de_DE.utf8}" != $available_locale; then
+ export LC_MONETARY="de_DE.UTF-8"
+fi
+if test "${available_locale#*en_US.utf8}" != $available_locale; then
+ export LANG="en_US.UTF-8"
+fi
# keyboard exports for sway
export XKB_DEFAULT_LAYOUT=de