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="pkri" data-source="post: 689240" data-attributes="member: 60701"><p>But i don't find .bashrc, .bash_profile and .profile. When i tried loading them as nano .bashrc, i didnt get any tab completion. That's why i tried to create a .bashrc myself. </p><p>This is what i did now, i opened bash shell and then typed</p><p></p><p>bash --rcfile /Users/pradeep/.bashrc (or) bash -i</p><p></p><p>now the changes i mentioned in .bashrc works!! But when i open the new terminal the changes go away. I think this means it reads off /etc/bashrc first while starting up the machine or while opening a new terminal window, and not ~./bashrc. But ~./bashrc is invoked only when i do bash -i.</p></blockquote><p></p>
[QUOTE="pkri, post: 689240, member: 60701"] But i don't find .bashrc, .bash_profile and .profile. When i tried loading them as nano .bashrc, i didnt get any tab completion. That's why i tried to create a .bashrc myself. This is what i did now, i opened bash shell and then typed bash --rcfile /Users/pradeep/.bashrc (or) bash -i now the changes i mentioned in .bashrc works!! But when i open the new terminal the changes go away. I think this means it reads off /etc/bashrc first while starting up the machine or while opening a new terminal window, and not ~./bashrc. But ~./bashrc is invoked only when i do bash -i. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Customizing the terminal prompt on Mac
Top