From bd885044e1b0e8909ab4bb182cd5885cf059df59 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 17 Dec 2022 23:35:26 +0100 Subject: [PATCH] updated zsh state --- states/zsh/zprofile.j2 | 15 ++++++++++++++- states/zsh/zshrc.j2 | 3 +-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/states/zsh/zprofile.j2 b/states/zsh/zprofile.j2 index efc7658..3707054 100644 --- a/states/zsh/zprofile.j2 +++ b/states/zsh/zprofile.j2 @@ -54,6 +54,19 @@ then source $ZSH/oh-my-zsh.sh fi +# Regionals +{% set locale = salt['pillar.get']('locale')|default('en_US.UTF-8') %} +export LANG={{ locale }} +export LC_ADDRESS={{ locale }} +export LC_IDENTIFICATION={{ locale }} +export LC_MEASUREMENT={{ locale }} +export LC_MONETARY={{ locale }} +export LC_NAME={{ locale }} +export LC_NUMERIC={{ locale }} +export LC_PAPER={{ locale }} +export LC_TELEPHONE={{ locale }} +export LC_TIME={{ locale }} + # Neovim aliases for i in v vi vim do @@ -63,4 +76,4 @@ alias weather="curl -s wttr.in/caen" # Misc settings bindkey -e -unsetopt share_history \ No newline at end of file +unsetopt share_history diff --git a/states/zsh/zshrc.j2 b/states/zsh/zshrc.j2 index 4401155..6611390 100644 --- a/states/zsh/zshrc.j2 +++ b/states/zsh/zshrc.j2 @@ -1,4 +1,3 @@ ## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }} -export LANG=fr_FR.UTF-8 -source /etc/zsh/zprofile \ No newline at end of file +source /etc/zsh/zprofile