-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
94 lines (71 loc) · 2.89 KB
/
Makefile
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
.PHONY: XXX install bin cgdb ctags erdtreerc git gpg latex lazygit matplotlib nvim qutebrowser screen sig xcompose zathura zshrc
XXX:
$(error Missing target. Use 'make install' to install all configurations or 'make <APP>' to install the \
configuration for a specific app)
install: bin cgdb ctags erdtreerc git gpg htop latex lazygit matplotlib nvim qutebrowser screen sig wezterm xcompose zathura zshrc
nvim:
@make -C neovimrc/ install
zshrc:
@make -C zshrc/ install
git:
cp -f gitconfig "${HOME}/.gitconfig"
cp -f gitignore "${HOME}/.gitignore"
-git config --global user.signingkey $(shell gpg --list-secret-keys --keyid-format LONG "haffner.immanuel@gmail.com" | grep sec | cut --delimiter='/' -f 2 | cut --delimiter=' ' -f 1)
sig:
cp -f bigdata.sig.html "${HOME}/.bigdata.sig.html"
cp -f private.sig.html "${HOME}/.private.sig.html"
cgdb:
mkdir -p "${HOME}/.cgdb"
cp -f cgdbrc "${HOME}/.cgdb/cgdbrc"
cp -f gdbinit "${HOME}/.gdbinit"
zathura:
mkdir -p "${HOME}/.config/zathura"
cp -f zathurarc "${HOME}/.config/zathura/zathurarc"
qutebrowser:
mkdir -p "${HOME}/.config/qutebrowser"
cp -f qutebrowser/qutebrowser.py "${HOME}/.config/qutebrowser/config.py"
-xdg-settings set default-web-browser org.qutebrowser.qutebrowser.desktop
-xdg-mime default org.qutebrowser.qutebrowser.desktop x-scheme-handler/http
-xdg-mime default org.qutebrowser.qutebrowser.desktop x-scheme-handler/https
cp -R qutebrowser/greasemonkey "${HOME}/.config/qutebrowser"
ctags:
cp -f ctags "${HOME}/.ctags"
screen:
cp -f screenrc "${HOME}/.screenrc"
latex:
cp -f latexmkrc "${HOME}/.latexmkrc"
xcompose:
cp -f XCompose "${HOME}/.XCompose"
matplotlib:
cp -Rf matplotlib "${HOME}/.config/"
bin:
cp -f uds-intranet "${HOME}/.local/bin/"
clangd:
@>&2 echo "WARNING: Installing a user-wide clangd config currently breaks clangd support in mutable"
@read -n1 -p "Install anyway? [y/N]" choice; \
case $${choice} in \
y|Y) \
mkdir -p "${HOME}/.config/clangd"; \
cp clangd.yaml "${HOME}/.config/clangd/config.yaml"; \
;; \
*) ;; \
esac
wezterm:
cp wezterm.lua "${HOME}/.wezterm.lua"
gsettings set org.cinnamon.desktop.default-applications.terminal exec wezterm # start Wezterm from Nemo
if [ "$$(xrdb -query | grep dpi | cut -f 2)" -gt 200 ]; then sed -iE 's/^config\.font_size.*$$/config.font_size = 8/' "${HOME}/.wezterm.lua"; fi
tempfile=$(mktemp) \
&& curl -o $tempfile https://raw.githubusercontent.com/wez/wezterm/master/termwiz/data/wezterm.terminfo \
&& tic -x -o ~/.terminfo $tempfile \
&& rm $tempfile
htop:
mkdir -p "${HOME}/.config/htop/"
cp -f htoprc "${HOME}/.config/htop/htoprc"
erdtree:
cp erdtreerc "${HOME}/.erdtreerc"
lazygit:
mkdir -p "${HOME}/.config/lazygit"
cp -f lazygit.yml "${HOME}/.config/lazygit/config.yml"
gpg:
mkdir -p "${HOME}/.gnupg"
cp gpg/* "${HOME}/.gnupg/"