NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Tweeking the PS1 (in ksh)





On 16/06/2026 2:10 am, Todd Gruhn wrote:
Must be ksh -- stuff on website-pages
simpling dont work.

I want the prompt changed:

Black-text  on white background.
Text is "tgruhn$ "

This is what I would use.

PROMPT="%K{white}%F{black}%n@%m:%~> %f%k "

%n - your name
%m - your host

Play around.

Your ultimate guide to zsh (search for "PROMPT_PERCENT") for all the magic zsh stuff:

https://www.bash2zsh.com/zsh_refcard/refcard.pdf

Regards,
MJ


Thanks -- it seems to be so hard.



Home | Main Index | Thread Index | Old Index