Export LC only when needed
and locale is available
This commit is contained in:
parent
2505c4ea56
commit
a70448b505
1 changed files with 18 additions and 14 deletions
|
@ -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}";
|
||||||
|
|
Reference in a new issue