LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Prompt question when using rxvt in fluxbox (https://www.linuxquestions.org/questions/linux-newbie-8/prompt-question-when-using-rxvt-in-fluxbox-631359/)

nonades 03-28-2008 04:47 PM

Prompt question when using rxvt in fluxbox
 
What do I have to edit to make it tell me

user@host: {pwd}$

Instead of:

{bash version}$


FYI it also does that in Konsole (it didn't do that when I used KDE.

Thanks!

Tinkster 03-28-2008 04:59 PM

What's the contents of your ~/.bashrc and ~/.bash_profile (or ~/.bash_login)?



Cheers,
Tink

nonades 03-30-2008 12:19 PM

I don't have those files. The closest I have is ~/.bash_history (which I know doesn't help :p ). Any help is still appreciated!

Tinkster 03-30-2008 12:46 PM

Just a starting block ... :}
~/.bash_login
Code:

if [ -e ~/.bashrc ]; then
    source ~/.bashrc
fi

~/.bashrc
Code:

export PS1="[\u@\h:\w]\$ "

Cheers,
Tink

machines 03-30-2008 12:49 PM

if you dont have the files Tinkster mentions above, you can create them yourself in a text editor, then put your commands in them, and save them to your home directory.

Maligree 03-30-2008 01:23 PM

Check http://tldp.org/HOWTO/Bash-Prompt-HOWTO/ for more information on prompt customization.

nonades 03-30-2008 01:31 PM

Thanks guys, I appreciate the fast responses!


All times are GMT -5. The time now is 02:34 PM.