Right now, this is what my Terminal shows:
MyName's-MacBookPro:location MyName$
I'd like for it to only show my name, so something like this:
MyName$
When I browsed online for a solution, they said to edit my .bashrc file. I added the following line to my .bashrc:
export PS1="\u$ "
but there hasn't been any change, even after restarting Terminal.
This is the current contents of my .bashrc file:
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export PS1="\u$ "
source ~/.bashrcinto.bash_profileand then using.bashrcas normal. Don't know why the Bash shipped with OSX doesn't read.bashrcitself. – David Lord Jun 23 '15 at 08:48@DavidLord, what exactly do you mean by "putting
– Saad Jun 23 '15 at 13:28source ~/.bashrcinto.bash_profile"? This sounds like a better way to do it.