LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-28-2008, 04:47 PM   #1
nonades
Member
 
Registered: Sep 2005
Location: VTC, VT
Distribution: Fedora 11
Posts: 46

Rep: Reputation: 15
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!
 
Old 03-28-2008, 04:59 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

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



Cheers,
Tink
 
Old 03-30-2008, 12:19 PM   #3
nonades
Member
 
Registered: Sep 2005
Location: VTC, VT
Distribution: Fedora 11
Posts: 46

Original Poster
Rep: Reputation: 15
I don't have those files. The closest I have is ~/.bash_history (which I know doesn't help ). Any help is still appreciated!
 
Old 03-30-2008, 12:46 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Just a starting block ... :}
~/.bash_login
Code:
if [ -e ~/.bashrc ]; then
    source ~/.bashrc
fi
~/.bashrc
Code:
export PS1="[\u@\h:\w]\$ "

Cheers,
Tink
 
Old 03-30-2008, 12:49 PM   #5
machines
LQ Newbie
 
Registered: Mar 2008
Distribution: slackware 12
Posts: 21

Rep: Reputation: 15
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.
 
Old 03-30-2008, 01:23 PM   #6
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
Check http://tldp.org/HOWTO/Bash-Prompt-HOWTO/ for more information on prompt customization.
 
Old 03-30-2008, 01:31 PM   #7
nonades
Member
 
Registered: Sep 2005
Location: VTC, VT
Distribution: Fedora 11
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks guys, I appreciate the fast responses!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to increase font size in 'rxvt' (i.e. in fluxbox console)? kornerr Linux - General 2 02-19-2005 10:07 AM
rxvt question jerryvb Slackware 2 01-24-2005 01:39 PM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 02:02 PM
prompt question, this is very noob dexter_modem Linux - Newbie 1 11-13-2003 10:06 AM
Bash Prompt Question ghight *BSD 6 01-31-2003 12:30 PM


All times are GMT -5. The time now is 10:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration