Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: zeugma

does that line go in the user's .bash_profile?


18 posted on 05/12/2006 12:32:59 PM PDT by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 16 | View Replies ]


To: ShadowAce
works better if you put it in .bashrc, because .bashrc is read by spawned processes. I believe .bash_profile is only read at login. See 'man bash' for more details :-)

 

19 posted on 05/12/2006 12:53:22 PM PDT by zeugma (Come to the Dark Side... We have cookies!)
[ Post Reply | Private Reply | To 18 | View Replies ]

To: ShadowAce
BTW: here's what it looks like in my .bashrc. Gotta do weird things because of the way the shell parses stuff.

PS1="\w \`if [ \$? = 0 ]; then echo :\\\); else echo :\\\(; fi\` "

20 posted on 05/12/2006 12:56:42 PM PDT by zeugma (Come to the Dark Side... We have cookies!)
[ Post Reply | Private Reply | To 18 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson