This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mac_setup.sh
executable file
·142 lines (72 loc) · 2.54 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#!/bin/bash
# add progress bar when curl-ing
echo progress-bar >> ~/.curlrc
# Install xcode
xcode-select —-install
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
# homebrews
brew install git
brew install bat
brew install jq
brew install [email protected]
brew install htop
brew install speedtest-cli
brew tap heroku/brew && brew install heroku
brew tap mongodb/brew
brew install [email protected]
brew services start [email protected]
brew install tmux
brew install imagemagick
brew install httpie
# install casks with homebrew
brew install --cask spotify
brew install --cask postico
brew install --cask telegram
brew install --cask brave-browser
brew install --cask rectangle
brew install --cask unetbootin
brew install --cask iterm2
brew install --cask visual-studio-code
brew install --cask cacher
brew install --cask zoom
brew install --cask tunnelblick
brew install --cask alfred
brew install --cask postgres
brew services start postgres
brew install --cask mongodb-compass
brew install --cask postman
brew install --cask slack
brew install --cask ngrok
brew install --cask discord
brew install --cask whatsapp
brew install --cask transmission
brew install --cask 1password
brew install --cask notion
brew install --cask caffeine
brew install --cask cheatsheet
brew install --cask parallels
brew install --cask raspberry-pi-imager
brew install --cask grammarly
# rvm
curl -sSL https://get.rvm.io | bash -s stable
source /Users/$USER/.rvm/scripts/rvm
rvm reload
rvm install 2.6.5
# Set up vim and add bash_aliases
curl https://api.cacher.io/raw/646545c7081c167ab56f/64a0859fbbf54ad42709/.vimrc > ~/.vimrc
curl https://api.cacher.io/raw/468294b6c3ed305a64f8/b4ed0b20a4e55dbc566e/bash_aliases.sh > ~/.bash_aliases
curl https://api.cacher.io/raw/6f8b1922252f91b7e94f/e50010a3ac354c015984/alias_setup.sh >> ~/.zshrc
curl https://api.cacher.io/raw/46f4a1e79509d02a1ad6/367e01e9ee0e5e4dfca7/tmux.conf >> ~/.tmux.conf
# Set up GitHub, script takes two arguments "name" "email"
git config --global user.name "$1"
git config --global user.email "$2"
# nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install --lts
npm i -g nodemon prettier yarn
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
upgrade_oh_my_zsh