mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
Merge eef8837c43 into 13e5afe805
This commit is contained in:
commit
d1e60b47aa
1 changed files with 11 additions and 1 deletions
12
lib/misc.zsh
12
lib/misc.zsh
|
|
@ -12,4 +12,14 @@ setopt long_list_jobs
|
||||||
export PAGER="less"
|
export PAGER="less"
|
||||||
export LESS="-R"
|
export LESS="-R"
|
||||||
|
|
||||||
export LC_CTYPE=$LANG
|
## how to interpret text characters
|
||||||
|
if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then # only define if undefined
|
||||||
|
export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
|
||||||
|
[[ -z "$LC_CTYPE" ]] && \
|
||||||
|
export LC_CTYPE=`locale -a | grep en_US.utf8 | head -1`
|
||||||
|
[[ -z "$LC_CTYPE" ]] && \
|
||||||
|
export LC_CTYPE=`locale -a | grep en_US | head -1`
|
||||||
|
[[ -z "$LC_CTYPE" ]] && \
|
||||||
|
export LC_CTYPE=C # default to internal encoding.
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue