Re: Tweeking the PS1 (in ksh)
MJ <[email protected]> Tue, 16 Jun 2026 08:22:43 +1000
| Newsgroups | gmane.os.netbsd.general |
|---|---|
| Message-ID | <[email protected]> |
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.