|
#!/bin/sh |
|
|
|
echo "Finder tweaks" |
|
# Show Library Folder in Finder |
|
chflags nohidden ~/Library |
|
# Show Hidden Files in Finder |
|
defaults write com.apple.finder AppleShowAllFiles YES |
|
# Show Path Bar in Finder |
|
defaults write com.apple.finder ShowPathbar -bool true |
|
|
|
echo "Installing Homebrew" |
|
if test ! $(which brew); then |
|
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc |
|
source ~/.zshrc |
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" |
|
fi |
|
brew update |
|
echo "Install Homebrew Packages" |
|
brew tap homebrew/bundle |
|
brew bundle |
|
|
|
echo "Installing node, yarn" |
|
nvm install node |
|
npm i -g yarn |
|
|
|
echo "Install XCode CLI Tool" |
|
xcode-select --install |
|
|
|
echo "Installing Oh My Zsh" |
|
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" |
|
git clone git://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions |
|
git clone git://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/plugins/zsh-syntax-highlighting |
|
echo "source ~/.oh-my-zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc |
|
sed -io 's/^plugins=.*/plugins=(git brew zsh-autosuggestions osx)/' ~/.zshrc |
|
sed -io 's/^ZSH_THEME.*/ZSH_THEME="agnoster"/' ~/.zshrc |
|
|
|
echo "Configuring Git" |
|
git config --global core.editor $(which vim) |
|
## diff-so-fancy config |
|
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX" |
|
git config --global interactive.diffFilter "diff-so-fancy --patch" |
|
git config --global color.ui true |
|
git config --global color.diff-highlight.oldNormal "red bold" |
|
git config --global color.diff-highlight.oldHighlight "red bold 52" |
|
git config --global color.diff-highlight.newNormal "green bold" |
|
git config --global color.diff-highlight.newHighlight "green bold 22" |
|
git config --global color.diff.meta "11" |
|
git config --global color.diff.frag "magenta bold" |
|
git config --global color.diff.func "146 bold" |
|
git config --global color.diff.commit "yellow bold" |
|
git config --global color.diff.old "red bold" |
|
git config --global color.diff.new "green bold" |
|
git config --global color.diff.whitespace "red reverse" |
|
|
|
echo "Enabling Services" |
|
open /Applications/Alfred\ 4.app |
|
open /Applications/Rectangle.app |