Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bash prompt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
[c4]
n00b
n00b


Joined: 07 Mar 2003
Posts: 43

PostPosted: Thu Mar 13, 2003 2:24 am    Post subject: bash prompt Reply with quote

hey where do i set the ps1 string to change the bash prompt since both .bashrc and .bash_promt exist in my home directory
Back to top
View user's profile Send private message
butters
Guru
Guru


Joined: 13 May 2002
Posts: 427
Location: Poughkeepsie, NY

PostPosted: Thu Mar 13, 2003 2:46 am    Post subject: Reply with quote

.bashrc is read when bash is started in interactive mode and .bash_login is read when bash is the login shell. I also have a .bash_profile file (automatically created at some point in time) that tells bash where to find the interactive login script (.bashrc by default).

Generally the accepted way to do this is to set PS1, PATH, etc in your .bashrc and edit your .bash_login to contain "source ~/.bashrc"

Good luck!!
_________________
If tugboats were bigger, they'd be the ones getting tugged.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Thu Mar 13, 2003 4:10 am    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum