Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I love Linux Mint's bash customization. It includes both a color prompt and a quote displayed with ASCII art.

Is it possible to have it in Ubuntu?

share|improve this question
You might want to describe what these customizations are. It's most likely possible in Ubuntu, but you need to tell us what you're looking for. – andrewsomething Jun 28 '11 at 16:27
attach a picture please... – antivirtel Jun 28 '11 at 16:27
It's not easy to show with a picture... It has different colours and random ascii art and quote at each time you open the terminal... – Pitto Jun 28 '11 at 16:29
Look in files like .bashrc on Mint. – Lekensteyn Jun 28 '11 at 16:50
up vote 19 down vote accepted

The file ~/.bashrc allows you to make the customizations you would like, among other things.

First open it with gedit ~/.bashrc

Now in order to have the multicolored prompt, find the line that looks like this:


Un-comment it (remove the #).

Now to get the ascii art and quote, you will need to install two packages:

sudo apt-get install cowsay fortune

Now in ~/.bashrc add a line with:

fortune | cowsay

Save the file, and restart your terminal (or resource the file with source ~/.bashrc).

mint-like bash prompt

share|improve this answer
And change the background color to white as well. That's how it is in Mint. – Abhay Rana Jun 28 '11 at 17:11

The custom setup is done in /etc/bash.bashrc on Linux Mint 11 - if you download the .iso you can mount that as a loop device on Ubuntu and copy/paste the text, which is quite large, but you should be able to paste it into your ~/.bashrc.

One nice feature is that the prompt changes to red when you are root.

There will also be some setup for the GNOME Terminal application to make the background be white - you can do that through the Terminal preferences.

share|improve this answer
Brilliant! :) :) – Pitto Jan 12 '12 at 11:44

If add the following to your .bashrc file, you get color-coded date, time, username, hostname, and the current directory. Most importantly, you get the entire line to type your command.

PS1="\a\n\n\e[31;1m\u@\h on \d at \@\n\e[33;1m\w\e[0m\n$ "

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.