about summary refs log tree commit diff
path: root/Functions/Prompts/prompt_zefram_setup
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 /Functions/Prompts/prompt_zefram_setup
parent4e0b88cfcda2227fa31efe986e3b450b69fd8922 (diff)
downloadzsh-295953df758bf75b3b8c7819b03df93f90090dab.tar.gz
zsh-295953df758bf75b3b8c7819b03df93f90090dab.tar.xz
zsh-295953df758bf75b3b8c7819b03df93f90090dab.zip
22672: arno: unset ksharrays for prompt functions
Diffstat (limited to 'Functions/Prompts/prompt_zefram_setup')
-rw-r--r--Functions/Prompts/prompt_zefram_setup4
1 files changed, 3 insertions, 1 deletions
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 () { }
 }