Skip to content

Commit cd7f677

Browse files
committed
setopt NO_LOCAL_TRAPS
1 parent 07f6133 commit cd7f677

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

agkozak-zsh-prompt.plugin.zsh

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

476477
# WSL should have BG_NICE disabled, since it does not have a Linux kernel
477478
if [[ -e /proc/version ]]; then
@@ -907,7 +908,8 @@ _agkozak_prompt_string () {
907908
# AGKOZAK_PROMPT_DIRTRIM
908909
############################################################
909910
() {
910-
setopt LOCAL_OPTIONS NO_KSH_ARRAYS NO_SH_WORD_SPLIT WARN_CREATE_GLOBAL
911+
emulate -L zsh
912+
setopt LOCAL_OPTIONS WARN_CREATE_GLOBAL
911913

912914
_agkozak_async_init
913915

0 commit comments

Comments
 (0)