Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Context for multiline commands



* 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