-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_prerequisite.sh
65 lines (43 loc) · 1.59 KB
/
install_prerequisite.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
#!/usr/bin/bash
echo "===0. check the access of github"
# use this link to modify hosts
# https://www.cnblogs.com/guotianbao/p/16028058.html
# use when in docker
unminimize -y
echo "===1. install git, gcc, g++, tmux, python, vim, xclip, xsel, autojump"
apt update -y
apt install git -y
apt install gcc -y
apt install g++ -y
apt install tmux -y
apt install python -y
apt install vim -y
apt install xclip -y
apt install xsel -y
apt install autojump -y
apt install curl -y
apt install zsh -y
echo "===2. install oh my tmux"
cd
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cd -
cp .tmux.conf.local ~
echo "===3. install tpm"
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
tmux source ~/.tmux.conf
tmux source ~/.tmux.conf.local
echo "===4. install oh my zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/oskarkrawczyk/honukai-iterm-zsh.git
cp honukai-iterm-zsh/honukai.zsh-theme ~/.oh-my-zsh/custom/themes/
rm -rf honukai-iterm-zsh/
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/clarketm/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
cp .zshrc ~
zsh
source ~/.zshrc
echo "===5. install awesome vim"
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh