Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh tips for "UNIX Power Tools"
- X-seq: zsh-users 2945
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: zsh tips for "UNIX Power Tools"
- Date: Sat, 4 Mar 2000 16:38:01 +0000
- Cc: Jerry Peek <jpeek@xxxxxxxxx>
- In-reply-to: <20000304130547.D1805@xxxxxxxxxxxxxxxxx>Comments: In reply to Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx> "Re: zsh tips for "UNIX Power Tools"" (Mar 4, 1:05pm)
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <28174.952013581@xxxxxxxxx> <20000303123932.A11036@xxxxxxxxxxxxxxxxx> <87k8jjwt6h.fsf@xxxxxxxxxxxxxxxxxxxx> <1000304054014.ZM21187@xxxxxxxxxxxxxxxxxxxxxxx> <20000304130547.D1805@xxxxxxxxxxxxxxxxx>
On Mar 4, 1:05pm, Thomas Köhler wrote:
} Subject: Re: zsh tips for "UNIX Power Tools"
}
} Of course [...]
I put in a lot of extra details for Jerry's benefit.
} > # requires setopt prompt_subst
} > PROMPT="$PROMPT"'%{$(show_mode INSERT >/dev/tty)%}'
} >
} > Now the prompt itself runs the initial show_mode, and you don't need any
} > background jobs run from precmd.
}
} Well, OK so far - but the indication still ends up in the wrong place
show_mode is a function; fiddle with it. E.g. pass the number of lines
to move up as a second argument, or pass that second argument only when
in the prompt and don't move up a line when $# > 1, or ...
} One last thing: Bart, thanks for your cool and incredible tips on this
} list. I learned much from you!
My pleasure.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author