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

Re: get output of a command in prompt



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