prompt customization

Asked by Ali Al-Sahaf

how to customize the prompt in pantheon-terminal

I have saved my customization in .bash_profile, It worked in gnome-terminal. However, it doesn't appear to work in pantheon-terminal.

Question information

Language:
English Edit question
Status:
Solved
For:
Terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Miroslav Ranković
Solved:
Last query:
Last reply:
Revision history for this message
Jaap Broekhuizen (jaapz-b) said :
#1

What do you mean by customizing?

Revision history for this message
Ali Al-Sahaf (lightspotblog) said :
#2

I mean how i can change the command prompt from:
user@computer:DirName$

to something like:
user : DirName [git branch] $

as explain in: http://net.tutsplus.com/tutorials/other/how-to-customize-the-command-prompt/

Revision history for this message
David Gomes (davidgomes) said :
#3

That is not up to the terminal, it's up to your shell (the default one is bash). Just follow the tutorial.

Revision history for this message
Ali Al-Sahaf (lightspotblog) said :
#4

I have followed the tutorial. It work as expected in gnome-terminal. However, no change appear in pantheon-terminal.

here is a screen shot:
http://db.tt/cu74FGak

Revision history for this message
Best Miroslav Ranković (m.rankovic) said :
#5

Try adding this in your .bashrc

if [ -f ~/.bash_profile ] ; then
    . ~/.bash_profile
fi

Revision history for this message
Ali Al-Sahaf (lightspotblog) said :
#6

Thanks Miroslav Ranković, that solved my question.