Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: get output of a command in prompt
- X-seq: zsh-users 10726
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: get output of a command in prompt
- Date: Sat, 16 Sep 2006 21:01:55 +0200
- In-reply-to: <20060916184913.GA18417@xxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Operating-system: Linux 2.6.16.16 i686
- References: <20060916184913.GA18417@xxxxxxxxxxxxxxxxxxxxx>
arno. <arno.@xxxxxxxxxx>:
[..get output of command into prompt..]
Take a look at this:
[snip]
zsh% PS1='$(printf "%s: %d" "This is a one" 1)-%% '
$(printf ": /home/hawk" "This is a one" 1)-% setopt promptsubst
This is a one: 1-%
[snap]
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author