Skip to content

Commit 07f6133

Browse files
committed
Problem with usr1 method
1 parent b16bf30 commit 07f6133

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

agkozak-zsh-prompt.plugin.zsh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,7 @@ _agkozak_has_usr1() {
471471
# AGKOZAK_TRAPUSR1_FUNCTION
472472
############################################################
473473
_agkozak_async_init() {
474-
emulate -L zsh
475-
setopt LOCAL_OPTIONS EXTENDED_GLOB
474+
setopt LOCAL_OPTIONS NO_KSH_ARRAYS NO_SH_WORD_SPLIT EXTENDED_GLOB
476475

477476
# WSL should have BG_NICE disabled, since it does not have a Linux kernel
478477
if [[ -e /proc/version ]]; then
@@ -908,8 +907,7 @@ _agkozak_prompt_string () {
908907
# AGKOZAK_PROMPT_DIRTRIM
909908
############################################################
910909
() {
911-
emulate -L zsh
912-
setopt LOCAL_OPTIONS WARN_CREATE_GLOBAL
910+
setopt LOCAL_OPTIONS NO_KSH_ARRAYS NO_SH_WORD_SPLIT WARN_CREATE_GLOBAL
913911

914912
_agkozak_async_init
915913

0 commit comments

Comments
 (0)