Page 1 of 1

[SOLVED] Terminal location

PostPosted: Nov 24th, '13, 19:12
by cliffordjnr
hi

Im using Terminator as my default terminal and as Konsole does it lists me as

Code: Select all
bash-4.2$


other distros ive used would list my hostname and then when i cd to any location the location would be listed so i knew where i was. in mageia when i cd anywhere it still only shows bash-4.2$.

anyone know how to change this?

cheers.

Re: Terminal location

PostPosted: Nov 24th, '13, 19:56
by doktor5000
You have to set or customize PS1 environment variable, best put it in your ~/.bashrc
Check http://www.cyberciti.biz/tips/howto-lin ... rompt.html or http://www.kirsle.net/wizards/ps1.html

Easiest way to get a usefull prompt is to install colorprompt. It will show green prompt for user, red prompt for root
and will show [user@host path] which should be sufficient for most needs.

Normally your terminal emulator should have configuration options for that.

Re: Terminal location

PostPosted: Nov 24th, '13, 21:26
by cliffordjnr
thanks for that it worked perfectly.

Re: Terminal location

PostPosted: Nov 24th, '13, 21:30
by doktor5000
Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks