Skip to content

Instantly share code, notes, and snippets.

Avatar

Denny Trebbin fibric

View GitHub Profile
@fibric
fibric / set-default-shell.sh
Created Feb 10, 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/USERNAME UserShell /bin/bash /usr/local/bin/fish
#on many pages you can read that you should add your custom shell path like /path/to/custom/shell to /etc/shells
#then run:
# chsh -s /path/to/custom/shell
#or 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.