-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmac_init
64 lines (45 loc) · 1.34 KB
/
mac_init
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
#!/usr/bin/env bash
# oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s /bin/zsh
# brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# brew install
brew install git
brew install wget
brew install ack
brew install autojump
brew install tree
echo '[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh' >> ~/.zshrc
source ~/.zshrc
# vim
curl -L https://bit.ly/janus-bootstrap | bash
# node install
brew install node
# yarn install
brew install yarn
# prepare folders
mkdir -p ~/workspace/
mkdir -p ~/0.temp/
mkdir -p ~/1.work/
mkdir -p ~/2.github/
# git alias
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
# node version manager
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.zshrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.zshrc
source ~/.zshrc
nvm install stable
nvm alias default node
npm install --global yrm --registry=https://registry.npm.taobao.org
yrm use cnpm
npm i -g yarn
# create ssh-keygen
# ssh-keygen
# cat ~/.ssh/id_rsa.pub
cat ~/.ssh/id_ed25519.pub
echo 'save it to git or icode'