mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01:00
survive emulate sh; fixes #226
This commit is contained in:
parent
5f15731c6a
commit
0067e0d4a1
7 changed files with 182 additions and 102 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue