todd-dsm / mac-ops

QnD Automation to build a MacBook Pro for DevOps
MIT License
11 stars 7 forks source link

make dash the default sh shell #4

Closed todd-dsm closed 6 years ago

todd-dsm commented 7 years ago

These things didn't work, yet:

Set Default sh to dash in ~/.bashrc export sh='/usr/local/bin/sh'

Created softlink from sh to dash:

ll /usr/local/bin/sh
lrwxr-xr-x 1 vagrant admin 19 Feb  2 18:58 /usr/local/bin/sh -> /usr/local/bin/dash

Added sh to /etc/shells:

/usr/local/bin/bash
/usr/local/bin/sh
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
todd-dsm commented 6 years ago

dash is the default sh interpreter after a reboot:

$ ls -l `which sh`
lrwxr-xr-x 1 vagrant admin 19 Sep  9 00:20 /usr/local/bin/sh -> /usr/local/bin/dash

closing