Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Customizing the terminal prompt on Mac
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cradom" data-source="post: 689345" data-attributes="member: 305283"><p>If you have a .bash_profile in your home dir, put this in it:</p><p>[CODE]</p><p># include .bashrc if it exists</p><p></p><p>if [ -f ~/.bashrc ]; then</p><p> source ~/.bashrc</p><p>fi</p><p>[/CODE]</p><p>That will make bash read your .bashrc in your home dir.</p><p>.bashrc is not in your home dir by default. You are supposed to create one to make changes to your $PATH or to make aliases, etc.</p><p>It needs to be plain text and executable as a linux file.</p><p>chmod +x .bashrc</p><p>will make it executable.</p></blockquote><p></p>
[QUOTE="cradom, post: 689345, member: 305283"] If you have a .bash_profile in your home dir, put this in it: [CODE] # include .bashrc if it exists if [ -f ~/.bashrc ]; then source ~/.bashrc fi [/CODE] That will make bash read your .bashrc in your home dir. .bashrc is not in your home dir by default. You are supposed to create one to make changes to your $PATH or to make aliases, etc. It needs to be plain text and executable as a linux file. chmod +x .bashrc will make it executable. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Customizing the terminal prompt on Mac
Top