diff options
author | Dennis Eriksen <d@ennis.no> | 2024-02-28 13:33:47 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2024-02-28 13:33:47 +0100 |
commit | 7b98cc5283437ec2f543b103edf99bb84845b581 (patch) | |
tree | e36644bdbc6582ef0dd17f7f179e66b2271d8dbb /prompt_adam3_setup | |
parent | Fix errors in license (diff) | |
download | adam3-7b98cc5283437ec2f543b103edf99bb84845b581.tar.gz |
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
Diffstat (limited to 'prompt_adam3_setup')
-rw-r--r-- | prompt_adam3_setup | 6 |
1 files changed, 4 insertions, 2 deletions
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_ |