Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
155 lines (122 loc) · 3.83 KB
/
Copy pathMakefile
File metadata and controls
155 lines (122 loc) · 3.83 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
.ONESHELL:
.PHONY: *
help:
@echo Use make all for git tig vim settings
all: git tig vim gpg
mkdir -p ~/git
other: zsh fzf log pass mutt tmux
git:
rm -f ~/.gitconfig
ln -s `pwd`/gitconfig ~/.gitconfig
mkdir -p ~/git
tig:
ln -sf `pwd`/tigrc ~/.tigrc
vim:
ln -sfT `pwd`/vim ~/.config/vim
sudo ln -sfT `pwd`/vim /usr/local/share/vim
# vim-plug
# curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
gpg:
ln -sf `pwd`/misc/gpg-agent ~/.gnupg/gpg-agent.conf
gpgconf --reload gpg-agent
zsh:
ln -sf `pwd`/zsh/zshenv ~/.zshenv
mkdir -p ~/.config/zsh
ln -sf `pwd`/zsh/zshrc ~/.config/zsh/.zshrc
fzf:
if [ ! -d "$(HOME)/.fzf" ]; then
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf;
~/.fzf/install;
fi
log:
# vimwiki
if [ ! -d "$(HOME)/.vimwiki" ]; then
git clone vps:~/log ~/log;
fi
pass:
if [ ! -d "$(HOME)/.password-store" ]; then
git clone ssh://vps/~/.password-store ~/.password-store;
fi
~/.local/share/applications:
mkdir -p $@
mutt: ~/.local/share/applications
ln -sf `pwd`/mutt -T ~/.config/mutt
ln -sf `pwd`/mutt/mutt.desktop $<
pass mail/mutt.hooks >mutt/hooks.topo
mbsync:
ln -sf `pwd`/mail/mbsyncrc ~/.mbsyncrc
# FQDN for mgenmid(1): <hostname>.topo.tw
mblaze:
mkdir -p ~/.mblaze
grep -qs '^FQDN:' ~/.mblaze/profile || echo "FQDN: $$(uname -n).topo.tw" >>~/.mblaze/profile
notmuch:
mkdir -p ~/.config/notmuch/default
ln -sf `pwd`/mail/notmuch-config ~/.config/notmuch/default/config
[ -d ~/.local/share/notmuch/default ] || notmuch new
goimapnotify: mbsync
mkdir -p ~/.config/goimapnotify ~/.config/systemd/user
ln -sf `pwd`/mail/goimapnotify.yaml ~/.config/goimapnotify/goimapnotify.yaml
ln -sf `pwd`/mail/on-new-mail.sh ~/.config/goimapnotify/on-new-mail.sh
ln -sf `pwd`/mail/goimapnotify.service ~/.config/systemd/user/goimapnotify.service
systemctl --user daemon-reload
systemctl --user enable --now goimapnotify.service
tmux:
ln -sf `pwd`/tmux/tmux.conf ~/.tmux.conf
crontab:
(crontab -l 2>/dev/null; cat bin/cron/* | sed '/^#/ d') | crontab -
# Swap Ctrl-Caps in X11
libinput:
sudo ln -sf `pwd`/X11/libinput/* /etc/X11/xorg.conf.d/
# Map Caps Lock to Ctrl in tty
console:
sudo install -Dm644 misc/keymap /usr/local/share/kbd/keymaps/caps-ctrl.map
sudo ln -sf `pwd`/misc/vconsole.conf /etc/vconsole.conf
sudo systemctl restart systemd-vconsole-setup.service
task:
ln -sf $(HOME)/.task/taskrc $(HOME)/.taskrc
if [ ! -d "$(HOME)/.task/.git" ]; then
if [ -d "$(HOME)/.task" ]; then rm -rf "$(HOME)/.task"; fi;
git clone --depth 1 vps:~/.task ~/.task;
fi
blog:
if [ ! -d "$(HOME)/blog" ]; then
git clone ssh://vps/~/blog $(HOME)/blog;
fi
theme:
ln -sf `pwd`/X11/themes -T ~/.themes
openbox: theme
ln -sf `pwd`/X11/openbox/rc.xml ~/.config/openbox/
cat <<EOF >~/.xprofile
export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
fcitx &
picom &
~/.fechbg
EOF
# Boot into X11 (Openbox): autologin on tty1, then profile runs startx
xinit:
sudo pacman -S --needed xorg-server xorg-xinit
ln -sf `pwd`/X11/xinitrc ~/.xinitrc
sudo mkdir -p /etc/systemd/system/getty@tty1.service.d
printf '%s\n' '[Service]' 'ExecStart=' \
"ExecStart=-/usr/bin/agetty -o '-p -f -- \\\\u' --noclear --autologin $(USER) %I \$$TERM" \
| sudo tee /etc/systemd/system/getty@tty1.service.d/autologin.conf
sudo systemctl daemon-reload
rofi:
ln -sf `pwd`/X11/rofi/config.rasi ~/.config/rofi/config.rasi
archcraft:
ls -sf `pwd`/bin/desktop/takeshot /usr/local/bin/takeshot
urlview:
ln -sf `pwd`/misc/urlview ~/.urlview
alacritty:
ln -sf `pwd`/X11/alacritty/ ~/.config/alacritty
mpd:
ln -sf `pwd`/X11/mpd/ncmpcpp ~/.config/ncmpcpp
rm -rf ~/.ncmpcpp
snippets:
rm -rf ~/snippets
ln -sf `pwd`/snippets ~/snippets
skills:
ln -sf `pwd`/$@/* ~/.claude/skills/
find `pwd`/skills -type f -perm -u=x -exec ln -sf {} ~/.local/bin/ \;