Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: Maniaman on 5 November 2002, 02:40

Title: Konsole probs.
Post by: Maniaman on 5 November 2002, 02:40
I created a new account on my machine, and when I open Konsole on that account it displays:

bash-2.05b$

How can i get it to display it as

[username@hostname directory]$

like it does for the root account. All of the terminals do this to me. Not that big of a deal, but  somewhat annoying in mny opinion.
Title: Konsole probs.
Post by: beltorak0 on 5 November 2002, 03:00
create (or edit) the ".bashrc" file in your home directory.
Code: [Select]

"~/.bashrc" is executed whenever bash is run interactively, but the script "~/.profile" is only executed at login.  I set all my settings in ".bashrc", and my ".profile" has 1 line: ". .bashrc".  whenever I enter a console/konsole/term/whatever, i get the prompt set up correctly.  And if you want it to be set that way for every user you create, drop the files in "/etc/skel".  You might want to leave the trailing "# " tho, some stupid scripts expect it for bash-magic.

hope that helps.

-t.

[ November 04, 2002: Message edited by: beltorak0 ]

Title: Konsole probs.
Post by: Maniaman on 5 November 2002, 03:42
Thanks for the help  (http://smile.gif)  It fixed my problem.