[zshrc] moved all environment variables from zsh to $XDG_CONFIG_DIR/environment.d
This commit is contained in:
parent
0c6636ff44
commit
52c52d9217
2 changed files with 10 additions and 7 deletions
4
.config/environment.d/lang.conf
Normal file
4
.config/environment.d/lang.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
LANG=de_DE.UTF-8
|
||||||
|
PAPERSIZE=a4
|
||||||
|
LANGUAGE=de:en
|
||||||
|
L_ALL=de_DE.UTF-8
|
13
.zshrc
13
.zshrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue