How to make Terminal prompt change permanent?

Joined
Dec 24, 2011
Messages
8
Reaction score
0
Points
1
I am using OS X Lion v10.7.2 and want to change my terminal prompt, but everytime I shutdown and restart Terminal, it defaults back to the original.

I am using
export PS1="\w >"

Thanks
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
If you don't have one, copy /etc/bashrc and/or /etc/profile to your user folder.
Rename them .bashrc and .bash_profile (notice the periods in front of name, this makes them hidden)
Now type, in Terminal, nano .bashrc. Nano is an editor. Add your command to the file, save it, then close it.
Restart Terminal. Ta da!!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top