aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/prompt_adam3_setup
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2024-02-28 13:33:47 +0100
committerDennis Eriksen <d@ennis.no>2024-02-28 13:33:47 +0100
commit7b98cc5283437ec2f543b103edf99bb84845b581 (patch)
treee36644bdbc6582ef0dd17f7f179e66b2271d8dbb /prompt_adam3_setup
parentFix errors in license (diff)
downloadadam3-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_setup6
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_