From 7b98cc5283437ec2f543b103edf99bb84845b581 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Wed, 28 Feb 2024 13:33:47 +0100 Subject: use emulate zsh with -L and -R instead of setopt emulate -L zsh sets local_options, local_patterns, and local_traps. With -R all options get reset, which is nice inside a function that runs as much as precmd --- prompt_adam3_setup | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'prompt_adam3_setup') diff --git a/prompt_adam3_setup b/prompt_adam3_setup index 15a67cf..6da691f 100644 --- a/prompt_adam3_setup +++ b/prompt_adam3_setup @@ -46,7 +46,8 @@ EOF } prompt_adam3_setup () { - setopt localoptions extendedglob + emulate -L zsh + setopt extendedglob autoload -Uz vcs_info @@ -164,7 +165,8 @@ prompt_adam3_setup () { } prompt_adam3_precmd () { - setopt localoptions extendedglob noxtrace + emulate -LR zsh + setopt extendedglob # vcs vcs_info #$vcs_info_msg_0_ -- cgit v1.2.3