You are not logged in.

#1 2007-05-31 12:06:05

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

How can I get shown myuser@myhost instead of bash-3.2$ in console?

Well, that's the question, in Konsole instead of myuser@myhost~$ appears "bash-3.2$". As a root, it appears as "root@myhost~#" as usual, but as a simple user, appears what I said. How can I solve it?

Greetings


Only deaths can see the end of battles.

Blog: http://djmartinez.co.cc -> The life of a Computer Engineer

Offline

#2 2007-05-31 12:32:07

Janax
Member
From: Iowa
Registered: 2007-05-21
Posts: 86

Re: How can I get shown myuser@myhost instead of bash-3.2$ in console?

You need to set the PS1 variable... check the bash prompt howto for more information.  My prompt is:

$ grep PS1 ~/.bashrc
export PS1="\[\033[1;32m\]\u@\h:\[\033[1;36m\]\w\[\033[0m\]\$ "         # green:cyan
#export PS1="\[\033[1;34m\]\u@\h:\[\033[1;32m\]\w\[\033[0m\]\\$ "       # blue:green

Offline

Board footer

Powered by FluxBB