-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRun-Full.sh
165 lines (127 loc) · 4.21 KB
/
Run-Full.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# Splash
echo "👀 WARNING"
echo "Full-Env setup script for macOS"
echo "This process takes 15 minutes⏰"
sleep 10
# Disable make .DS_Store
defaults write com.apple.desktopservices DSDontWriteNetworkStores True
# Install Homebrew
echo "🎁 Install Homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
xcode-select --install
# Install yadr
echo "🎁 Install YADR..."
sh -c "`curl -fsSL https://raw.githubusercontent.com/skwp/dotfiles/master/install.sh `"
# Install development environments
echo "🎁 Install nodenv..."
brew install nodenv
git clone https://github.com/nodenv/node-build.git ~/.nodenv/plugins/node-build
echo "🎁 Install pyenv..."
brew install pyenv
# Install packages & cask
echo "🎁 Install Homebrew dependences..."
echo "🎁 - 📦 yarn"
brew install yarn
echo "🎁 - 📦Google Chrome"
brew install --cask google-chrome
echo "🎁 - 📦Google Japanese IME"
brew install --cask google-japanese-ime
echo "🎁 - 📦iTerm2"
brew install --cask iterm2
echo "🎁 - 📦ngrok"
brew install --cask ngrok
echo "🎁 - 📦Slack"
brew install --cask slack
echo "🎁 - 📦VSCode"
brew install --cask visual-studio-code
echo "🎁 - 📦Firefox"
brew install --cask firefox
echo "🎁 - 📦Powershell"
brew install --cask powershell
echo "🎁 - 📦Remote Desktop Beta"
brew install --cask homebrew/cask-versions/microsoft-remote-desktop-beta
echo "🎁 - 📦Docker"
brew install docker
brew install --cask docker
echo "🎁 - 🔧Other packages..."
brew install arp-scan
brew install ccrypt
brew install ctags
brew install jq
brew install lolcat
brew install nmap
brew install nyancat
brew install pwgen
brew install sl
brew install slackcat
brew install speedtest-cli
echo "🔧 - Some miscellaneous"
brew install exa
brew install bat
brew install procs
# Write settings config
echo "🔧 Setting shell language..."
export LANG=ja_JP.UTF-8
# pyenv path
echo "📝 Writing environments path... - 📍 pyenv"
sudo echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
sudo echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
sudo echo 'eval "$(pyenv init -)"' >> ~/.zshrc
# nodenv path
echo "📝 Writing environments path... - 📍 nodenv"
sudo echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.zshrc
sudo echo 'eval "$(nodenv init -)"' >> ~/.zshrc
# go path
echo "📝 Writing environments path... - 📍 go"
sudo echo 'export GOPATH=$HOME/go' >> ~/.zshrc
sudo echo 'export PATH=$PATH:$GOPATH/bin' >>~/.zshrc
# Write all alias
echo "📝 Writing environments path... - 🚩 Alias"
sudo echo 'alias reload="exec $SHELL -l"' >>~/.zshrc
sudo echo 'alias vscode="open -a Visual\ Studio\ Code"' >>~/.zshrc
sudo echo 'alias firefox="open -a Firefox"' >>~/.zshrc
sudo echo 'alias divvy="Divvy"' >>~/.zshrc
sudo echo 'alias slack="open -a Slack"' >>~/.zshrc
sudo echo 'alias powershell="/usr/local/microsoft/powershell/6/pwsh"' >>~/.zshrc
sudo echo 'alias ff="open -a FireFox"' >>~/.zshrc
sudo echo 'alias github="ff http://github.com"' >>~/.zshrc
sudo echo 'alias powershell="/usr/local/microsoft/powershell/6/pwsh"' >>~/.zshrc
sudo echo 'alias ff="open -a FireFox"' >>~/.zshrc
sudo echo 'alias github="ff http://github.com"' >>~/.zshrc
# Apply zsh source
echo "🚃 Loading zsh source..."
source ~/.zshrc
# Install python/node/go versions
echo "💼 Install python 3.7.3..."
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install 3.7.3
echo "💼 Install node 10.1.0..."
nodenv install 10.1.0
echo "💼 Install go amesh..."
go get github.com/otiai10/amesh/amesh
echo "💼 Install go dep..."
go get -u github.com/golang/dep/cmd/dep
echo "🙆 node 10.1.0"
nodenv global 10.1.0
echo "🙆 python 3.7.3"
pyenv global 3.7.3
# History settings
echo "📋 History settings..."
sudo echo 'HISTFILE=$HOME/.zsh-history' >>~/.zshrc
sudo echo 'HISTSIZE=100000' >>~/.zshrc
sudo echo 'SAVEHIST=1000000' >>~/.zshrc
# VSCode settings
echo "🎨 Install VSCode plugins..."
sh "./VSCode-Plugins.sh"
echo "🎨 Install Ricty fonts..."
sh "./Ricty.sh"
echo "🔌 Reloading..."
sleep 3
reset
# Python packages install
echo "📦 Install python packages..."
pip install -r requirements.txt
# Jupyter lab
echo "📦 Install Jupyter Lab..."
pip install jupyterlab
# Done.
echo "⚡⚡⚡ Done! ⚡⚡⚡"