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: 688825" data-attributes="member: 60701"><p>Iam using Mac OS X 10.5.2. Strangely, i dont have a .bashrc file on the users home folder. So i set out to create one. This is what i did.</p><p></p><p>First i created .bashrc by doing 'touch .bashrc'. Then i filled the following contents.</p><p></p><p># User @ Host - working dir</p><p>#export PS1=”\u@\h\w$ ”</p><p>export PS1="\u@\h\w: "</p><p></p><p></p><p>In order to force Terminal.app to load .bashrc at the start: i opened terminal.app and then i opened preferences dialog. navigated to the startup section. Then i selected 'shells open with' under 'command(complete path)'. I gave the path as</p><p> </p><p>/bin/bash –-rcfile /Users/pradeep/.bashrc --> pradeep is my username</p><p></p><p>Then i opened the new terminal window to check if it took effect, but there was no change. </p><p>am i doing something wrong ? </p><p></p><p>Best,</p><p>Pkri</p></blockquote><p></p>
[QUOTE="pkri, post: 688825, member: 60701"] Iam using Mac OS X 10.5.2. Strangely, i dont have a .bashrc file on the users home folder. So i set out to create one. This is what i did. First i created .bashrc by doing 'touch .bashrc'. Then i filled the following contents. # User @ Host - working dir #export PS1=”\u@\h\w$ ” export PS1="\u@\h\w: " In order to force Terminal.app to load .bashrc at the start: i opened terminal.app and then i opened preferences dialog. navigated to the startup section. Then i selected 'shells open with' under 'command(complete path)'. I gave the path as /bin/bash –-rcfile /Users/pradeep/.bashrc --> pradeep is my username Then i opened the new terminal window to check if it took effect, but there was no change. am i doing something wrong ? Best, Pkri [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Customizing the terminal prompt on Mac
Top