survive emulate sh; fixes #226

This commit is contained in:
romkatv 2019-09-20 11:22:14 +02:00
commit 0067e0d4a1
7 changed files with 182 additions and 102 deletions

View file

@ -4,7 +4,7 @@ emulate -L zsh
setopt noaliases
() {
setopt extended_glob no_prompt_{bang,subst} prompt_{cr,percent,sp} typeset_silent
setopt extended_glob no_prompt_{bang,subst} prompt_percent typeset_silent
zmodload zsh/langinfo
if [[ ${langinfo[CODESET]:-} != (utf|UTF)(-|)8 ]]; then
local LC_ALL=${${(@M)$(locale -a):#*.(utf|UTF)(-|)8}[1]:-en_US.UTF-8}