I was looking into some zsh functionality today and decided it was time to
update my prompt. Here's what I've come up with so far, with the help of jcap:
export PS1="%~$(print '%{\e[1m%}%(!.%{\e[31m%}#.%{\e[32m%}$)%{\e[0m%}') " export RPS1="%m@%D{%H%m%S}:%h"
This replaces my old prompt of:
export PS1='%m!%n:%~%(!.#.$) '
I liked the UUCP-style identifier, but the super-reduced left hand side is
pretty slick, as is the one dot of color. (I tried using the built-in colors
function, but it gave me grief.) I'd like to tidy up the RPS1, but I'm not
sure how, yet.
builtin prompts (Score:2)
Re:builtin prompts (Score:2)
Re:builtin prompts (Score:2)
-Dom
Re:builtin prompts (Score:1)
Do note my other comment [perl.org].
Re:builtin prompts (Score:1)
(How can people use three-line prompts? Yow!)
rjbs
Re:builtin prompts (Score:1)
Don’t use
hardstatus, usecaption.hardstatuscan be affected using escape sequences from within a screen window (so you don’t want it as the bottom line), but it can passed through to the title of an xterm if you set your.screenrcup correctly (so you want something else to set up the bottom line).Try this:
WINDOW (Score:1)
Re:WINDOW (Score:1)
rjbs