-
Notifications
You must be signed in to change notification settings - Fork 2
/
init-osx.sh
executable file
·75 lines (69 loc) · 1.32 KB
/
init-osx.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
CASK_APPS='
docker
iterm2
emacs
rowanj-gitx
google-chrome
firefox
shadowsocksx-ng
tunnelblick
adobe-acrobat-reader
squirrel
typora
burp-suite
wireshark
grammarly
skitch
vlc
'
APPS='
readline
git
bash
coreutils
findutils
gnu-tar
gnu-sed
gawk
gnutls
gnu-indent
gnu-getopt
grep
make
tree
wget
tmux
httpie
nmap
netcat
mtr
iproute2mac
siege
tor
go
maven
textql
gnumeric
'
if [[ $(uname) == 'Darwin' ]]; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap homebrew/cask
brew cask install $CASK_APPS
brew install $APPS
# install python
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
$HOME/.pyenv/bin/pyenv install 2.7.18
$HOME/.pyenv/bin/pyenv install 3.8.6
git clone https://github.com/pyenv/pyenv-virtualenvwrapper.git $HOME/.pyenv/plugins/pyenv-virtualenvwrapper
# install node
curl -L https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash
. install.sh
read -p "Are you want auto starting syncthing? (y/n) " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
brew services start syncthing
fi
else
echo 'Run script must be on MACOS'
fi