[zshrc] moved all environment variables from zsh to $XDG_CONFIG_DIR/environment.d

This commit is contained in:
Tobias Schmidl 2023-01-19 10:27:28 +01:00
parent 0c6636ff44
commit 52c52d9217
2 changed files with 10 additions and 7 deletions

View file

@ -0,0 +1,4 @@
LANG=de_DE.UTF-8
PAPERSIZE=a4
LANGUAGE=de:en
L_ALL=de_DE.UTF-8

13
.zshrc
View file

@ -1,10 +1,9 @@
# explicitly set the language, *before* antigen gets loaded if [ -d /usr/lib/systemd/system-environment-generators ];
export LANG=de_DE.UTF-8 then
export PAPERSIZE=a4 run-parts /usr/lib/systemd/user-environment-generators | grep -v '#' | grep -v '^ $' | while read cur_env; do export ${cur_env}; done
export LANGUAGE=de:en else
cat $HOME/.config/environment.d/* | grep -v '#' | grep -v '^$' | while read cur_env; do export "${cur_env}"; done
# export ANTIGEN_LOG=$HOME/antigen.log fi
# export ANTIGEN_DEBUG_LOG=$HOME/antigen.debug.log
setopt HIST_EXPIRE_DUPS_FIRST setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS setopt HIST_IGNORE_DUPS