-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·69 lines (53 loc) · 2.03 KB
/
install.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
#!/bin/sh
# if mac os
if [ `uname` = "Darwin" ]; then
# set proxy
export http_proxy=http://127.0.0.1:1089 https_proxy=http://127.0.0.1:1089
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install bat
brew install eza
brew install fd
brew install fzf
brew install git-delta
brew install ripgrep
brew install tldr
brew install zoxide
elif [ `uname` = "Linux" ]; then
# set proxy
export http_proxy=http://192.168.119.1:1089 https_proxy=http://192.168.119.1:1089
sudo apt-get install build-essential
sudo apt-get install zsh
sudo apt-get install bat
sudo apt-get install fd-find
sudo apt install fzf
sudo apt-get install ripgrep
/bin/bash -c "$(curl -sSf https://sh.rustup.rs)"
cargo install eza
cargo install git-delta
cargo install zoxide --locked
fi
# change default shell -> zsh
chsh -s /bin/zsh
cd ~
# install oh-my-zsh
[ -e ".oh-my-zsh" ] && rm -rf .oh-my-zsh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# install powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# install zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# install zsh-vi-mode
git clone https://github.com/jeffreytse/zsh-vi-mode ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-vi-mode
# link .zshrc configuration
[ -e ".zshrc" ] && rm .zshrc
ln -s .dotfile/.zshrc .zshrc
# link .ideavimrc
[ -e ".ideavimrc" ] && rm .ideavimrc
ln -s .dotfile/.ideavimrc .ideavimrc
# link git configuration
[ -e ".gitconfig" ] && rm .gitconfig
ln -s .dotfile/.gitconfig .gitconfig
git clone https://github.com/Karmenzind/monaco-nerd-fonts .dotfile/fonts/monaco-nerd-fonts
# install my vimrc
/bin/bash -c "$(curl -fsSL https://raw.github.com/ck89119/.vim/master/auto-install.sh)"