aboutsummaryrefslogtreecommitdiffstats
path: root/macos/shell.sh
blob: 716851335a1347cbdaf102ce0b27a410610de8ed (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh
set -o errexit
set -o nounset

if [ "$SHELL" != "$(brew --prefix)/bin/oksh" ]; then
  echo "$(brew --prefix)/bin/oksh" | sudo tee -a /etc/shells
  chsh -s "$(brew --prefix)/bin/oksh"
fi