Skip to content

Instantly share code, notes, and snippets.

Avatar

Denny Trebbin fibric

View GitHub Profile
@fibric
fibric / set-default-shell.sh
Last active Oct 17, 2020
Change default shell in macOS (since Catalina)
View set-default-shell.sh
# one-line command to set the default shell to, e.g., fish (installed via brew)
sudo dscl localhost -change /Local/Default/Users/$USER UserShell /bin/bash /usr/local/bin/fish
# on many pages you can read that you should add your custom shell path e.g. /path/to/custom/shell to /etc/shells
# then run:
# chsh -s /path/to/custom/shell
# some people try to convince you changing the default shell in your terminal app
# or changing your login shell in System > Preferences > Users & Groups
You can’t perform that action at this time.