forked from Schnouki/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.dotfiles
executable file
·32 lines (27 loc) · 901 Bytes
/
setup.dotfiles
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
#!/bin/zsh
# Setup git hooks
for F in hook.*; do
setup_file_symlink "$F" ".config/.git/hooks/${F:e}"
done
# Setup dotfiles
for F in ctags globalrc guile tmux.conf tmuxp Xresources xinitrc; do
setup_file_symlink "$F" ".$F"
done
# Setup encrypted dotfiles
setup_decrypt "pws.yaml.gpg" ".config/pws.yaml"
setup_decrypt "ssh.gpg" ".ssh/config"
setup_decrypt "gpg.conf.gpg" ".gnupg/gpg.conf"
setup_decrypt "msmtprc.gpg" ".msmtprc"
setup_decrypt "offlineimaprc.gpg" ".offlineimaprc"
setup_decrypt "netrc.gpg" ".netrc"
setup_decrypt "pycard.conf.gpg" ".config/pycard.conf"
setup_decrypt "smd-config.default.gpg" ".smd/config.default"
setup_decrypt "smd-loop.gpg" ".smd/loop"
# Setup encrypted tarballs
setup_decrypt_tarball "calibre.tar.gpg"
setup_decrypt_tarball "pgweb.tar.gpg"
setup_decrypt_tarball "weechat.tar.gpg"
# Load Xresources
if [ "$DISPLAY" ]; then
xrdb -merge ~/.Xresources
fi