Compare commits
No commits in common. "0c68d583f03592780fe4eb0bf618a7f243c40b9d" and "b20365383f1d9049fe8c9cb5002320f1de56a0bf" have entirely different histories.
0c68d583f0
...
b20365383f
39
.zshrc
39
.zshrc
|
@ -30,7 +30,7 @@ fi
|
||||||
alias darkbg='xtermcontrol --bg "#000" --fg "#FFF"; export BG=dark'
|
alias darkbg='xtermcontrol --bg "#000" --fg "#FFF"; export BG=dark'
|
||||||
alias lightbg='xtermcontrol --bg "#EEE" --fg "#000" --highlight="#0FF"; export BG=light'
|
alias lightbg='xtermcontrol --bg "#EEE" --fg "#000" --highlight="#0FF"; export BG=light'
|
||||||
alias defaultbg='. ~/.zxtermcolors'
|
alias defaultbg='. ~/.zxtermcolors'
|
||||||
alias ag='ag --color-path "34;47"'
|
alias ag='ag --color-path 32'
|
||||||
|
|
||||||
namedir(){
|
namedir(){
|
||||||
eval "$1=~+"
|
eval "$1=~+"
|
||||||
|
@ -127,3 +127,40 @@ fi
|
||||||
# for new style completion:
|
# for new style completion:
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
compinit
|
compinit
|
||||||
|
|
||||||
|
utf=`locale -a | grep en_US.utf8`
|
||||||
|
if [ -n "$utf" ]
|
||||||
|
then
|
||||||
|
# this is a bit of a hack -
|
||||||
|
# locale -a advertises the locale as "en_US.utf8",
|
||||||
|
# but the glibc accepts both "en_US.utf8" and
|
||||||
|
# "en_US.UTF-8" and xterm recogizes only the latter.
|
||||||
|
# So we explicitely set the latter, even though that's
|
||||||
|
# not the canonical name and may break some day.
|
||||||
|
#
|
||||||
|
case "`uname -sr`" in
|
||||||
|
Linux*)
|
||||||
|
LANG=en_US.UTF-8
|
||||||
|
;;
|
||||||
|
HP-UX*)
|
||||||
|
# UTF-8 locale on HP-UX is broken
|
||||||
|
LANG=en_US.iso88591
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
LANG=en_US.utf8
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
# fall back to latin 1.
|
||||||
|
LANG=en_US.iso88591
|
||||||
|
fi
|
||||||
|
export LANG
|
||||||
|
case "$LANG" in
|
||||||
|
*.iso88591)
|
||||||
|
export LESSCHARSET=latin1
|
||||||
|
export NLS_LANG=american_america.WE8ISO8859P1
|
||||||
|
;;
|
||||||
|
*.UTF-8)
|
||||||
|
export NLS_LANG=american_america.UTF8
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
Loading…
Reference in New Issue