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”.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s