Whiskey Kilo Linux  •  Exploring GNU/Linux and F/OSS
intrepid.jpg

Friday 30th July 2010

drupal member logo

drupal logo

ubuntu logo

gnome logo

opensource logo

Change the default bash prompt

Bash promptThe default bash prompt in Ubuntu is a bit boring don't you think? To make the prompt more colorfull and create more room for those long command lines, change your /home/username/.bashrc and replace the PS1 variable with the following (on a single line).

PS1='\[\e[1;35m\]\n\t \u@\h [\[\e[1;34m\]\w\[\e[1;35m]\]\n\$ \[\e[0m\]'

For more info, see the Bash Prompt HOWTO

Tags:

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may link to images on this site using a special syntax

More information about formatting options

CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.