Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Context for multiline commands
- X-seq: zsh-users 9907
- From: Christian Schneider <strcat@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Context for multiline commands
- Date: Fri, 10 Feb 2006 21:11:00 +0100
- In-reply-to: <200602101459.43249.jfh@xxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Born to frag.
- References: <200602101459.43249.jfh@xxxxxxxxxxxx>
* James F. Hranicky <jfh@xxxxxxxxxxxx> typed:
> The version of zsh I have installed on my Solaris machines keeps
> the context for multiline commands to help me remember where I am:
>
> for i in * ; do
> for> if [ "$i" = "0" ] ; then
> for then>
>
> However, on my SuSE 9.3 machines this seems to be disabled
>
> for i in * ; do
> > if [ "$i" = "0" ] ; then
> >
>
> anyone know what the directive is to enable this behavior?
That's ``PS2''; default is "%_> "
,----
| painless% echo $PS2
| %_>
| painless% for i in {1..2} ; do
| for> echo $i
| for> done
| 1
| 2
| painless% PS2="> "
| painless% for i in {1..2} ; do
| > echo $i
| > done
| 1
| 2
| painless%
`----
--
Feel free to contact me (flames about my english and the useless of this
driver will be redirected to /dev/null, oh no, it's full...).
-- Michael Beck, describing the PC-speaker sound device
Messages sorted by:
Reverse Date,
Date,
Thread,
Author