chsh -s /bin/bash username
will permanently change the default shell for the named user.
|
|
|
How things can change in the space of a year ... back then, this hint gave a NetInfo workaround for changing the default shell in OS X. Thanks to last month's Macworld (the Geek Factor column, page 88), we now have an easier, older way: the chsh command.
will permanently change the default shell for the named user.
•
[7,130 views]
Hint Options
Change your shell in Panther via chsh
I wrote that article for Macworld... I thought I had submitted the hint here a while ago. Rob? Did I forget?
left hand, right hand...
Sorry to inadvertently scoop you, Kirk. No offense intended. I had to search my brain for where I saw the chsh hint after someone here in the office was using the older NetInfo method to change shells, and once I found it I noticed that MOXhints was still listing the old way.
Change your shell in Panther via chsh
I've tried using both the NetInfo and chsh methods, but my default shell is always tcsh. Why won't it switch over and stay over?
Change your shell in Panther via chsh
My first guess is that you have some Unix command running in your shell inits that you put there years ago that's doing this. Check your .rc's.
Change your shell in Panther via chsh
Your Terminal Preferences probably is set to execute the command /bin/tcsh when creating a new terminal window. Change this to "Execute the default login shell..." and the shell you selected with chsh should work.
Change your shell in Panther via chsh
I use iTerm as my default terminal app. When I checked the Shell preferences, its initial command was "login -fp myusername". Once I changed that to "/bin/bash" everything works fine! |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.20 seconds |
|