about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-09-07 18:09:44 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-09-07 18:09:44 +0000
commit295953df758bf75b3b8c7819b03df93f90090dab (patch)
treeb268bea6932ccf9d66b25ab25d2366d9f07501e1
parent4e0b88cfcda2227fa31efe986e3b450b69fd8922 (diff)
downloadzsh-295953df758bf75b3b8c7819b03df93f90090dab.tar.gz
zsh-295953df758bf75b3b8c7819b03df93f90090dab.tar.xz
zsh-295953df758bf75b3b8c7819b03df93f90090dab.zip
22672: arno: unset ksharrays for prompt functions
-rw-r--r--Functions/Prompts/prompt_clint_setup4
-rw-r--r--Functions/Prompts/prompt_zefram_setup4
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 () { }
 }