From 41a89a3c3602ca90acc92d9891a91edb4d432bbe Mon Sep 17 00:00:00 2001 From: Christian Baer Date: Tue, 2 Jun 2020 16:12:54 +0200 Subject: [PATCH] Set zsh form brew as default shell in mac init script --- .zshenv | 2 +- init/mac.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.zshenv b/.zshenv index f24a7fc..edfcc5a 100644 --- a/.zshenv +++ b/.zshenv @@ -3,5 +3,5 @@ # Where to look for zsh config ZDOTDIR=~/.zsh -# Load config files in $ZSH/lib that for stage 3 +# Load config files in $ZSH/lib that for stage 1 for config_file ($ZDOTDIR/lib/10-*.zsh) source $config_file diff --git a/init/mac.sh b/init/mac.sh index 35e0c1c..1af9605 100755 --- a/init/mac.sh +++ b/init/mac.sh @@ -185,7 +185,6 @@ echo ">>> Processing Brewfile..." # Install apps from Brewfile brew bundle - echo ">>> Instaling apps that are not avaliable in brew or AppStore..." MAC_INSTALLMOUNT="$MAC_DOWNLOAD/mount" mkdir -p ${MAC_INSTALLMOUNT} @@ -238,3 +237,7 @@ done find $MAC_NATIVEFIERTMP -depth 2 -name "*.app" -exec cp -rf {} /Applications \; rm -rf $MAC_NATIVEFIERTMP + +## Set zsh from brew as default shell +echo ">>> Setting /usr/local/bin/zsh as default shell for $USER" +sudo chsh -s /usr/local/bin/zsh $USER