Bashrc Prompt…

Ubuntu has a really long prompt which shows the full directory (or nearly all of it). So if like me you store your files in an organised directory tree gets a bit tedious…. /home/grant/working/ultra_checkout/gli/bemcalc across your screen fills up most of the prompt.

Add:

PS1="[\W]\\$ "
PS2="> "

To your .bashrc file to get a shorter prompt.

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