[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
|
||||
export LANG=de_DE.UTF-8
|
||||
export PAPERSIZE=a4
|
||||
export LANGUAGE=de:en
|
||||
|
||||
# export ANTIGEN_LOG=$HOME/antigen.log
|
||||
# export ANTIGEN_DEBUG_LOG=$HOME/antigen.debug.log
|
||||
if [ -d /usr/lib/systemd/system-environment-generators ];
|
||||
then
|
||||
run-parts /usr/lib/systemd/user-environment-generators | grep -v '#' | grep -v '^ $' | while read cur_env; do export ${cur_env}; done
|
||||
else
|
||||
cat $HOME/.config/environment.d/* | grep -v '#' | grep -v '^$' | while read cur_env; do export "${cur_env}"; done
|
||||
fi
|
||||
|
||||
setopt HIST_EXPIRE_DUPS_FIRST
|
||||
setopt HIST_IGNORE_DUPS
|
||||
|
|
Loading…
Reference in a new issue