mirror of
https://github.com/zsh-users/zsh
synced 2024-09-29 20:54:53 +00:00
Add "unset" to the localoptions in several functions (users/7212).
This commit is contained in:
parent
2313f83218
commit
062a095cfe
|
@ -58,7 +58,7 @@ prompt_bart_help () {
|
|||
}
|
||||
|
||||
prompt_bart_precmd () {
|
||||
setopt localoptions noxtrace noksharrays
|
||||
setopt localoptions noxtrace noksharrays unset
|
||||
local zero='%([BSUbsu]|{*%})'
|
||||
|
||||
# Using psvar here protects against unwanted promptsubst expansions.
|
||||
|
@ -111,7 +111,7 @@ prompt_bart_ps1 () {
|
|||
}
|
||||
|
||||
prompt_bart_winch () {
|
||||
setopt localoptions noksharrays
|
||||
setopt localoptions noksharrays unset
|
||||
|
||||
# Delete ourself from TRAPWINCH if not using our precmd insert.
|
||||
[[ $functions[precmd] = *prompt_bart_precmd* ]] && prompt_bart_ps1 ||
|
||||
|
@ -119,7 +119,7 @@ prompt_bart_winch () {
|
|||
}
|
||||
|
||||
prompt_bart_setup () {
|
||||
setopt localoptions noksharrays
|
||||
setopt localoptions noksharrays unset
|
||||
|
||||
# A few extra niceties ...
|
||||
repeat 1 case "$1:l" in
|
||||
|
|
Loading…
Reference in a new issue