Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
slightly OT: mimic zsh's right prompt in bash
- X-seq: zsh-users 11522
- From: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: slightly OT: mimic zsh's right prompt in bash
- Date: Tue, 29 May 2007 13:46:40 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxxx>
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`
Messages sorted by:
Reverse Date,
Date,
Thread,
Author