Merge pull request #3563 from mcornella/fix-unicode-locale

Fix Unicode problems by only setting LC_CTYPE if not set
This commit is contained in:
Robby Russell 2015-02-10 11:49:23 -08:00
commit 2f76919826

View file

@ -9,11 +9,14 @@ setopt long_list_jobs
export PAGER="less" export PAGER="less"
export LESS="-R" export LESS="-R"
export LC_CTYPE=$LANG
## super user alias ## super user alias
alias _='sudo' alias _='sudo'
alias please='sudo' alias please='sudo'
## more intelligent acking for ubuntu users ## more intelligent acking for ubuntu users
alias afind='ack-grep -il' alias afind='ack-grep -il'
# only define LC_CTYPE if undefined
if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
fi