-
Notifications
You must be signed in to change notification settings - Fork 1
/
mac-setup.sh
executable file
·35 lines (27 loc) · 1.04 KB
/
mac-setup.sh
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
34
35
#!/usr/bin/env bash
# Install XCode tools
xcode-select --install
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
cat brew_list | grep -v ^# | xargs brew install
cat brew_tap | grep -v ^# | xargs brew tap
brew update && brew outdated
brew upgrade && brew cleanup
cat brew_cask_list | grep -v ^# | xargs brew cask install
brew cask outdated --quiet | xargs brew cask reinstall
# Install dotfiles
ls -p | grep -v / | grep dot- | cut -d '-' -f 2 | xargs -n 1 -I {} ln -s -f `pwd`/dot-{} ~/.{}
ls -p | grep / | grep dot- | cut -d '-' -f 2 | cut -d '/' -f 1 | xargs -n 1 -I {} sh -c '[ ! -e ~/.{} ] && ln -s -f `pwd`/dot-{} ~/.{}'
git submodule init
git submodule update
ln -s `pwd`/tmux/.tmux.conf ~/.tmux.conf
# Setup git
git config --global url."[email protected]:".insteadOf "https://github.com/"
git config --global core.excludesfile ~/.gitignore_global
# Install fzf
yes | /usr/local/opt/fzf/install
# Install i2cssh
gem install i2cssh
pyenv install 2.7.18
pyenv install 3.6.11
pyenv install 3.7.8