-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·56 lines (38 loc) · 1.32 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
#!/bin/sh
set -xe
D="$(realpath $(dirname $0))"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
rm $HOME/.zshrc
mkdir -p $HOME/.zsh
git clone https://github.com/zsh-users/zaw.git $HOME/.zsh/zaw
git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm
ln -s $D/bin $HOME/bin
for i in .alacritty.toml .ackrc .gitconfig .gitignore_global .npmrc .tmux.conf .zshrc ; do
ln -s $D/$i $HOME/$i
done
for i in psqlrc ; do
ln -s $D/$i $HOME/.$i
done
mkdir -p $HOME/.cargo
ln -s $D/cargo.config.toml $HOME/.cargo/config.toml
mkdir -p $HOME/.config/htop
ln -s $D/htoprc $HOME/.config/htop/htoprc
mkdir -p $HOME/.dir_colors
ln -s $D/dircolors $HOME/.dir_colors/dircolors
mkdir -p $HOME/.ssh
ln -s $D/ssh_config $HOME/.ssh/config
mkdir -p $HOME/.gnupg
ln -s $D/gnupg/gpg-agent.conf $HOME/.gnupg/gpg-agent.conf
ln -s $D/gnupg/scdaemon.conf $HOME/.gnupg/scdaemon.conf
chmod -R 700 $HOME/.gnupg $HOME/.ssh
gpg --import < $HOME/Sync/pubkey.asc
mkdir -p $HOME/.config
ln -s $D/nvim $HOME/.config/nvim
ln -s $D/helix $HOME/.config/helix
ln -s $D/dlv $HOME/.config/dlv
mkdir -p $HOME/.config/systemd
ln -s $D/systemd-user $HOME/.config/systemd/user
systemctl --user daemon-reload
systemctl --user enable backup.timer
systemctl --user enable tmux.service
systemctl --user start tmux.service