From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: Wish for rprompt feature
Date: Sun, 21 Mar 2004 00:00:01 +0000 [thread overview]
Message-ID: <1040321000001.ZM18557@candle.brasslantern.com> (raw)
In-Reply-To: <20040320192851.GG7334@blorf.net>
On Mar 20, 11:28am, Wayne Davison wrote:
} Subject: Re: Wish for rprompt feature
}
} If I use "prompt bart", the spacing prior to the date is missing and I
} get this error:
}
} prompt_bart_precmd:14: : parameter not set
}
} I added "unset" to the "setopt localoptions" in prompt_bart_precmd and
} the error went away. Is that the right fix?
Yes, that is the right fix. I have it in my copy here at home, but I
apparently never remembered to commit it. :-(
Index: Functions/Prompts/prompt_bart_setup
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Prompts/prompt_bart_setup,v
retrieving revision 1.6
diff -u -r1.6 prompt_bart_setup
--- Functions/Prompts/prompt_bart_setup 11 Apr 2001 22:25:27 -0000 1.6
+++ Functions/Prompts/prompt_bart_setup 20 Mar 2004 23:49:03 -0000
@@ -58,7 +58,7 @@
}
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_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_setup () {
- setopt localoptions noksharrays
+ setopt localoptions noksharrays unset
# A few extra niceties ...
repeat 1 case "$1:l" in
prev parent reply other threads:[~2004-03-21 1:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-19 11:41 Thorsten Kampe
2004-03-20 17:10 ` Bart Schaefer
2004-03-20 18:12 ` Thorsten Kampe
2004-03-21 1:29 ` Bart Schaefer
2004-03-24 20:25 ` Thorsten Kampe
2004-03-25 3:07 ` Bart Schaefer
2004-03-20 19:28 ` Wayne Davison
2004-03-21 0:00 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1040321000001.ZM18557@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).