Archived
1
0
Fork 0

Export LC only when needed

and locale is available
This commit is contained in:
J. Elfring (x) 2020-12-12 23:15:05 +01:00
parent 2505c4ea56
commit a70448b505

View file

@ -16,20 +16,24 @@ export HISTCONTROL=ignoredups;
export HISTIGNORE=" *:ls:cd:cd -:pwd:exit:date:&::[bf]g:exit:pwd:clear:mplayer"; export HISTIGNORE=" *:ls:cd:cd -:pwd:exit:date:&::[bf]g:exit:pwd:clear:mplayer";
# Deutsches System aber englische Messages und Sortierung # Deutsches System aber englische Messages und Sortierung
export LC_MESSAGES="en_US.UTF-8" # aber nur wenn die locale gesetzt werden kann
export LC_COLLATE="C" if [ -x /usr/bin/locale ]
export LANG="de_DE.UTF-8" then
export LC_CTYPE="de_DE.UTF-8" export LC_MESSAGES="en_US.UTF-8"
export LC_NUMERIC="de_DE.UTF-8" export LC_COLLATE="C"
export LC_TIME="de_DE.UTF-8" export LANG="de_DE.UTF-8"
export LC_MONETARY="de_DE.UTF-8" export LC_CTYPE="de_DE.UTF-8"
export LC_PAPER="de_DE.UTF-8" export LC_NUMERIC="de_DE.UTF-8"
export LC_NAME="de_DE.UTF-8" export LC_TIME="de_DE.UTF-8"
export LC_ADDRESS="de_DE.UTF-8" export LC_MONETARY="de_DE.UTF-8"
export LC_TELEPHONE="de_DE.UTF-8" export LC_PAPER="de_DE.UTF-8"
export LC_MEASUREMENT="de_DE.UTF-8" export LC_NAME="de_DE.UTF-8"
export LC_IDENTIFICATION="de_DE.UTF-8" export LC_ADDRESS="de_DE.UTF-8"
unset LC_ALL export LC_TELEPHONE="de_DE.UTF-8"
export LC_MEASUREMENT="de_DE.UTF-8"
export LC_IDENTIFICATION="de_DE.UTF-8"
unset LC_ALL
fi
# Highlight section titles in manual pages # Highlight section titles in manual pages
export LESS_TERMCAP_md="${yellow}"; export LESS_TERMCAP_md="${yellow}";