Set zsh form brew as default shell in mac init script

This commit is contained in:
Christian Baer 2020-06-02 16:12:54 +02:00
parent 0cd62c36d7
commit 41a89a3c36
2 changed files with 5 additions and 2 deletions

View File

@ -3,5 +3,5 @@
# Where to look for zsh config # Where to look for zsh config
ZDOTDIR=~/.zsh 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 for config_file ($ZDOTDIR/lib/10-*.zsh) source $config_file

View File

@ -185,7 +185,6 @@ echo ">>> Processing Brewfile..."
# Install apps from Brewfile # Install apps from Brewfile
brew bundle brew bundle
echo ">>> Instaling apps that are not avaliable in brew or AppStore..." echo ">>> Instaling apps that are not avaliable in brew or AppStore..."
MAC_INSTALLMOUNT="$MAC_DOWNLOAD/mount" MAC_INSTALLMOUNT="$MAC_DOWNLOAD/mount"
mkdir -p ${MAC_INSTALLMOUNT} mkdir -p ${MAC_INSTALLMOUNT}
@ -238,3 +237,7 @@ done
find $MAC_NATIVEFIERTMP -depth 2 -name "*.app" -exec cp -rf {} /Applications \; find $MAC_NATIVEFIERTMP -depth 2 -name "*.app" -exec cp -rf {} /Applications \;
rm -rf $MAC_NATIVEFIERTMP 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