diff --git a/lib/misc.zsh b/lib/misc.zsh index ea8a05fc..0b7cb269 100644 --- a/lib/misc.zsh +++ b/lib/misc.zsh @@ -9,11 +9,14 @@ setopt long_list_jobs export PAGER="less" export LESS="-R" -export LC_CTYPE=$LANG - ## super user alias alias _='sudo' alias please='sudo' ## more intelligent acking for ubuntu users 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