-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_firstinstall
46 lines (37 loc) · 1.29 KB
/
.bash_firstinstall
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
#!/usr/bin/env bash
# fixme: 容错检查 不要报错或警告 比如mkdir
# todo: 变量配置 如是否有必要使用taobao源
### brew https://brew.sh/
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
### desktop apps
brew cask install iterm2 visual-studio-code db-browser-for-sqlite
brew cask install chrome firefox youdaodict youdaonote wechatwebdevtools
### utils
brew install vim --with-override-system-vi
brew install wget --with-iri
brew install git # 2.15(built-in) => 2.17
brew install git-lfs
brew install imagemagick --with-webp
brew install ffmpeg --with-libass
brew install lua
brew install rename
brew install tree
brew install youtube-dl
brew install trash-cli
### nvm, node, db
brew install nvm yarn mongodb redis
# brew services start redis
# see `brew info nvm`
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"
mkdir $NVM_DIR
# nvm 使用淘宝镜像 https://www.chenky.com/archives/746
export NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node
nvm install 8.11.1 # becomes default
nvm install 9.11.1
nvm use default
npm i -g nrm npx pm2 nodemon serve ava imagemin fanyi jayin
npm i -g vue-cli vuepress
# npm i -g element-ui at-ui antd
export ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
npm i -g electron