summaryrefslogtreecommitdiff
path: root/mac-install.sh
blob: 62893cd08736fdc994ff560d164b515413130e9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
RUBY_VERSION="2.6.7"

cat Brewfile | xargs brew install
cat Caskfile | xargs brew install --cask

# Plug plugin manager for neovim/vim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

./linky.sh

source $HOME/.zshrc
# ruby-install ruby $RUBY_VERSION
chruby ruby-$RUBY_VERSION


# This repo can be cloned/installed anywhere but we always make a link here
# such that other scripts know where to find things
ln -sfn $PWD $HOME/.dotfiles

# This directory may not exist yet, so we make a call to `mkdir` for good
# measure
mkdir -p $HOME/.config/nvim
ln -sfn $PWD/init.vim $HOME/.config/nvim/init.vim

mkdir $HOME/Screenshots
defaults write com.apple.screencapture location -string $HOME/Screenshots
defaults write com.apple.screencapture show-thumbnail -bool FALSE
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
cd /Applications
sudo chflags hidden Messages.app Mail.app Maps.app Siri.app News.app Home.app FaceTime.app Chess.app Books.app Dictionary.app