-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile-linux
More file actions
133 lines (110 loc) · 3.2 KB
/
Makefile-linux
File metadata and controls
133 lines (110 loc) · 3.2 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
.PHONY: XXX install
.PHONY: \
bin \
cgdb \
clangd \
ctags \
erdtreerc \
git \
gpg \
htop \
latex \
lazygit \
matplotlib \
nvim \
qutebrowser \
screen \
vectorcode \
wezterm \
xcompose \
zathura \
zshrc
SHELL := /bin/bash
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 \
clangd \
ctags \
erdtreerc \
git \
gpg \
htop \
latex \
lazygit \
matplotlib \
nvim \
qutebrowser \
screen \
vectorcode \
wezterm \
xcompose \
zathura \
zshrc
nvim:
@make -C neovimrc/ install
zshrc:
@make -C zshrc/ install
git:
envsubst '$$HOME' < gitconfig > "${HOME}/.gitconfig"
install -D 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)
cgdb:
install -D cgdbrc "${HOME}/.cgdb/cgdbrc"
install -D gdbinit "${HOME}/.gdbinit"
zathura:
install -D zathurarc "${HOME}/.config/zathura/zathurarc"
qutebrowser:
mkdir -p "${HOME}/.config/qutebrowser/"
install -D 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
mkdir -p "${HOME}/.config/qutebrowser/greasemonkey"
install -D qutebrowser/greasemonkey/* "${HOME}/.config/qutebrowser/greasemonkey/"
ctags:
install -D ctags "${HOME}/.ctags"
screen:
install -D screenrc "${HOME}/.screenrc"
latex:
install -D latexmkrc "${HOME}/.latexmkrc"
xcompose:
install -D XCompose "${HOME}/.XCompose"
matplotlib:
install -dD matplotlib "${HOME}/.config/"
bin:
mkdir -p "${HOME}/.local/bin/"
install -D bin/* "${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:
install wezterm.lua "${HOME}/.wezterm.lua"
-gsettings set org.cinnamon.desktop.default-applications.terminal exec /usr/bin/wezterm # start Wezterm from Nemo
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/"
install -D htoprc "${HOME}/.config/htop/htoprc"
erdtree:
install -D erdtreerc "${HOME}/.erdtreerc"
lazygit:
mkdir -p "${HOME}/.config/lazygit"
install -D lazygit.yml "${HOME}/.config/lazygit/config.yml"
gpg:
mkdir -p "${HOME}/.gnupg"
install -D gpg/* "${HOME}/.gnupg/"
vectorcode:
mkdir -p "${HOME}/.config/vectorcode"
install -D vectorcode-config.json5 "${HOME}/.config/vectorcode/config.json5"