diff options
Diffstat (limited to 'Functions')
-rw-r--r-- | Functions/Prompts/prompt_clint_setup | 4 | ||||
-rw-r--r-- | Functions/Prompts/prompt_zefram_setup | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Functions/Prompts/prompt_clint_setup b/Functions/Prompts/prompt_clint_setup index 5befc5431..d9fbacc9a 100644 --- a/Functions/Prompts/prompt_clint_setup +++ b/Functions/Prompts/prompt_clint_setup @@ -56,7 +56,7 @@ $p_shlvlhist$p_rc$p_apm$p_end" } prompt_clint_precmd () { - setopt noxtrace localoptions + setopt noxtrace noksharrays localoptions local exitstatus=$? [[ $exitstatus -ge 128 ]] && psvar[1]=" $signals[$exitstatus-127]" || @@ -67,7 +67,7 @@ prompt_clint_precmd () { } prompt_clint_apm_precmd () { - setopt noxtrace localoptions + setopt noxtrace noksharrays localoptions local bat ac bat=${${="$(</proc/apm)"}[7]/%/%%} diff --git a/Functions/Prompts/prompt_zefram_setup b/Functions/Prompts/prompt_zefram_setup index 3e6d34840..7b7eefb28 100644 --- a/Functions/Prompts/prompt_zefram_setup +++ b/Functions/Prompts/prompt_zefram_setup @@ -1,5 +1,6 @@ function prompt_zefram_precmd { local exitstatus=$? + setopt localoptions noxtrace noksharrays psvar=(SIG) [[ $exitstatus -gt 128 ]] && psvar[1]=SIG$signals[$exitstatus-127] [[ $psvar[1] = SIG ]] && psvar[1]=$exitstatus @@ -10,7 +11,8 @@ function prompt_zefram_setup { PS1='[%(2L.%L/.)'$ZSH_VERSION']%(?..%B{%v}%b)%n%(2v.%B@%b.@)%m:%B%~%b%(!.#.>) ' PS2='%(4_:... :)%3_> ' - precmd () { prompt_zefram_precmd; setopt promptsubst } + prompt_opts=( cr subst percent ) + precmd () { prompt_zefram_precmd } preexec () { } } |