-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·51 lines (41 loc) · 1.09 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
#!/bin/bash
# do for all
function do_for_all {
cp tmux.conf ~/.tmux.conf
curl -sfLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
cp vimrc ~/.vimrc
cp gitconfig ~/.gitconfig
}
function install_bash {
# server
cp bashrc ~/.bashrc
cp bash_aliases ~/.bash_aliases
## install rg
wget https://github.com/BurntSushi/ripgrep/releases/download/0.10.0/ripgrep_0.10.0_amd64.deb
dpkg -i ripgrep_0.10.0_amd64.deb
rm ripgrep_0.10.0_amd64.deb
## install fd
wget https://github.com/sharkdp/fd/releases/download/v7.2.0/fd-musl_7.2.0_amd64.deb
dpkg -i fd-musl_7.2.0_amd64.deb
rm fd-musl_7.2.0_amd64.deb
}
# client
function install_zsh {
cp zshrc ~/.zshrc
mkdir -p ~/.config/i3
cp config ~/.config/i3/config
cp i3status.conf ~/.i3status.conf
mkdir -p ~/.i3/py3status/
pacman -S py3status
pip install --user pyvbox
cp vms.py ~/.i3/py3status/vms.py
i3-msg restart
}
if command -v zsh > /dev/null
then
do_for_all
install_zsh
else
do_for_all
install_bash
fi