Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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
1  
attach a picture please... –  B. Roland 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
2  
Look in files like .bashrc on Mint. –  Lekensteyn Jun 28 '11 at 16:50

3 Answers 3

up vote 17 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:

#force_color_prompt=yes

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
2  
And change the background color to white as well. That's how it is in Mint. –  Capt.Nemo 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

 
discard

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.