zsh-users
 help / color / mirror / code / Atom feed
* slightly OT: mimic zsh's right prompt in bash
@ 2007-05-29 12:46 Thorsten Kampe
  0 siblings, 0 replies; only message in thread
From: Thorsten Kampe @ 2007-05-29 12:46 UTC (permalink / raw)
  To: zsh-users

Hi,

I know that this is not directly related to zsh but I scent extended 
bash knowledge here (guessing from the "From bash to zsh" book).

My question is: how can I mimic a typical zsh prompt with the pwd at 
the right in bash:

My zsh prompt is:
user@host%                            /path/to/pwd

How can I mimic the right hand side in bash?


Thorsten

PS
It's even possible in 4NT (cmd compatible replacement). The right hand 
side prompt simply gets overwritten when I type into it:

set prompt=`%_winuser@%_host%$g$s$e[s$e[%@inc[%_row];%@eval[%_columns 
- %@len[%_cwd]]H$p$e[u`


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-29 12:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-29 12:46 slightly OT: mimic zsh's right prompt in bash Thorsten Kampe

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).