Last active
March 12, 2022 16:50
-
-
Save magicknot/e51063c8d8a6f537804f09648b7c73f4 to your computer and use it in GitHub Desktop.
Load zshrc after installing it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Installing brew..." | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
echo "Installing oh my zsh..." | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | |
echo "ZSH_DISABLE_COMPFIX=true\n$(cat ~/.zshrc)" > ~/.zshrc | |
source ~/.zshrc | |
echo "Installing software..." | |
brew tap homebrew/cask-fonts | |
brew cask install maccy iterm2 1password intellij-idea visual-studio-code postman rectangle google-chrome firefox docker font-hack-nerd-font | |
brew install wget tree golang npm yarn zsh-completions zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting fzf | |
$(brew --prefix)/opt/fzf/install --all | |
echo "Setting up zsh..." | |
wget -O $ZSH_CUSTOM/themes/common.zsh-theme https://raw.githubusercontent.com/jackharrisonsherlock/common/master/common.zsh-theme | |
echo "source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc | |
echo "source /usr/local/share/zsh-history-substring-search/zsh-history-substring-search.zsh" >> ~/.zshrc | |
echo "source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc | |
sed -i "" 's/ZSH_THEME="robbyrussell"/ZSH_THEME="common"/g' ~/.zshrc | |
sed -i "" 's/plugins=(git)/plugins=(git cf docker docker-compose)/g' ~/.zshrc | |
echo 'if [ -d "$GOPATH/bin" ]; then | |
export PATH="$PATH;$GOPATH/bin" | |
fi' >> ~/.zshrc | |
cp /System/Applications/Utilities/Terminal.app/Contents/Resources/Fonts/*.otf ~/Library/Fonts/ | |
echo "Loading changes..." | |
source ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment