Monday, 27 February 2012

A Truly Simple ZSH Prompt

When you Google for this information you gets lots of pages that give you a really fancy prompt. If I have to write/copy so much code to just get a simple prompt then I'm not doing the work I am being paid to do!.

Here is what I use everyday (put it into your ~/.zshrc):

PROMPT='%B%t%b %n@%m:%0~# '

This gives you a prompt similar to:

10:35AM root@myhost:/usr/local/etc#

If you wan to see what other options you have do "man zshmisc".

No comments:

Post a Comment