-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·37 lines (30 loc) · 977 Bytes
/
install.sh
File metadata and controls
executable file
·37 lines (30 loc) · 977 Bytes
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
#!/bin/bash
PATH=/usr/bin
# local config
ln -s ~/.dotfiles/zshrc ~/.zshrc
ln -s ~/.dotfiles/zprofile ~/.zprofile
ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf
ln -s ~/.dotfiles/ansible.cfg ~/.ansible.cfg
ln -s ~/.dotfiles/hgrc ~/.hgrc
ln -s ~/.dotfiles/gitconfig ~/.gitconfig
ln -s ~/.dotfiles/gitignore ~/.gitignore
ln -s ~/.dotfiles/gdbinit ~/.gdbinit
ln -s ~/.dotfiles/ansible.cfg ~/.ansible.cfg
ln -s ~/.dotfiles/gpg.conf ~/.gnupg/gpg.conf
ln -s ~/.dotfiles/bin ~/.local/bin
# security related
if [[ -e ~/.ssh && ! -e ~/.ssh/config ]]; then
cp ~/.dotfiles/skel/ssh_config ~/.ssh/config
mkdir ~/.ssh/sockets
fi
cat << EOF
for nftables firewall (as root):
cp ~/.dotfiles/firewall/workstation.nftables /etc/nftables.conf
vim /etc/nftables.conf
systemctl start nftables
systemctl enable nftables
EOF
# advanced tooling
[[ ! -e ~/.newsboat ]] && mkdir ~/.newsboat
ln -s ~/.dotfiles/newsboat.cfg ~/.newsboat/config
cd ~/.dotfiles && git submodule update --init