-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_mac.sh
executable file
·81 lines (62 loc) · 2.18 KB
/
setup_mac.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash
RUBY_VERSION=latest
NODE_VERSION=latest
POSTGRES_VERSION=14.4
set -e
ln -s ./home/.zshrc ~/.zshrc
ln -s ./home/.vimrc ~/.vimrc
ln -s ./home/.gitignore_global ~/.gitignore_global
sudo cp ./etc/hosts /etc/hosts
mkdir ~/.postgres
xcode-select --install
bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install zsh
chsh -s /usr/local/bin/zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
brew install python
brew install neovim
pip3 install --user neovim
brew tap homebrew/cask-versions
brew install gcc llvm http-server readline zlib ossp-uuid coreutils libpq nss imagemagick curl mkcert git gpg gawk zsh yarn asdf
brew install stripe/stripe-cli/stripe
asdf plugin add ruby
asdf install ruby $RUBY_VERSION
asdf global ruby $RUBY_VERSION
asdf plugin add nodejs
asdf install nodejs $NODE_VERSION
asdf global nodejs $NODE_VERSION
asdf plugin add postgres
asdf install postgres $POSTGRES_VERSION
brew install fzf
brew install ripgrep
brew install libyaml
brew install git
brew install git-absorb
brew install gh
brew install thefuck
brew install mas
brew install redis
brew install shared-mime-info
brew tap heroku/brew && brew install heroku
brew install --cask iterm2
brew install --cask vscodium
brew install --cask slack
brew install --cask zoom
brew install --cask whatsapp
brew install --cask google-chrome
brew install --cask google-chat
brew install --cask postman
brew install --cask spectacle
brew install --cask firefox-developer-edition
apps_to_open_at_login=(Harvest iTerm Slack Spectacle)
for app in $apps_to_open_at_login
osascript -e "tell application \"System Events\" to make login item at end with properties { path: \"/Applications/$app.app\", hidden: false }"
mkdir -p ~/.config/nvim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
sudo cp ./config/nvim/init.vim ~/.config/nvim/init.vim
sudo chown -R $USER ~/.vim ~/.local ~/.config /Library/Ruby
vim +PluginInstall
git config --global core.excludesfile ~/.gitignore_global
git config --global user.name "luca-landa"
git config --global user.email "[email protected]"