Operating Systems > Linux and UNIX
Konsole probs.
(1/1)
Maniaman:
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.
beltorak0:
create (or edit) the ".bashrc" file in your home directory.
--- Code: ---
--- End code ---
"~/.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 ]
Maniaman:
Thanks for the help It fixed my problem.
Navigation
[0] Message Index
Go to full version