Last active
August 29, 2015 14:07
-
-
Save breiter/c4866b1fee357c145ce8 to your computer and use it in GitHub Desktop.
Replace bash with dash for /bin/sh in OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mv /bin/sh /bin/sh.0 | |
#files rearranged slightly in Yosemite. | |
#mv /usr/share/man/man1/sh.1.gz /usr/share/man/man1/sh.1.gz.0 | |
rm /usr/share/man/man1/sh.1 | |
ln -s /opt/local/bin/dash /bin/sh | |
ln -s /opt/local/man/man1/dash.1.gz /usr/share/man/man1/sh.1.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mv /bin/sh.0 /bin/sh | |
#files rearragned slightly in Yosemite. | |
#mv /usr/share/man/man1/sh.1.gz.0 /usr/share/man/man1/sh.1.gz | |
rm /usr/share/man/man1/sh.1.gz | |
ln -s /usr/share/man/man1/bash.1 /usr/share/man/man1/sh.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment