[SOLVED] Terminal location

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Terminal location

Postby cliffordjnr » Nov 24th, '13, 19:12

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.
Last edited by cliffordjnr on Nov 24th, '13, 23:11, edited 1 time in total.
cliffordjnr
 
Posts: 9
Joined: Nov 24th, '13, 19:05

Re: Terminal location

Postby doktor5000 » Nov 24th, '13, 19:56

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18071
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Terminal location

Postby cliffordjnr » Nov 24th, '13, 21:26

thanks for that it worked perfectly.
cliffordjnr
 
Posts: 9
Joined: Nov 24th, '13, 19:05

Re: Terminal location

Postby doktor5000 » Nov 24th, '13, 21:30

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18071
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest