-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
233 lines (197 loc) · 5.4 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
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
all: binaries cli desktop
binaries: $(home)/bin
ln -sf $(CURDIR)/bin/* $(HOME)/bin/
$(HOME)/bin:
mkdir $(HOME)/bin
macos: /opt/homebrew/bin/brew
/opt/homebrew/bin/brew bundle
/opt/homebrew/bin/brew:
/bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
cli: shell tmux neovim git alacritty
alacritty:
mkdir -p $(HOME)/.config/alacritty
ln -sf $(CURDIR)/alacritty.toml $(HOME)/.config/alacritty/alacritty.toml
~/.oh-my-zsh:
which wget || ( echo 'wget is required, please install it' && exit 1 )
sh -c "$$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
git clone https://github.com/zsh-users/zsh-autosuggestions $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
shell: ~/.oh-my-zsh
ln -sf $(CURDIR)/.zshrc $(HOME)/.zshrc
ln -sf $(CURDIR)/.p10k.zsh $(HOME)/.p10k.zsh
ln -sf $(CURDIR)/.aliases $(HOME)/.aliases
tmux: tmux-plugins
ln -sf $(CURDIR)/.tmux.conf $(HOME)/.tmux.conf
ln -sf $(CURDIR)/.tmux-airline $(HOME)/.tmux-airline
tmux-plugins:
mkdir -p $(HOME)/.tmux-plugins
@while read -r plugin; do \
repo="$$plugin"; \
dir="$(HOME)/.tmux-plugins/$${repo##*/}"; \
if cd $$dir; then git pull; else git clone $$repo $$dir; fi; \
done < $(CURDIR)/.tmux-plugins
vimrc-nvim-config:
mkdir -p $(HOME)/.config
ln -sf $(CURDIR)/vimrc-nvim $(HOME)/.config/nvim
vim-coc:
pip3 install --user jedi
vim: vimrc-nvim-config
which curl || ( echo 'curl is required, please install it' && exit 1 )
which pip3 || ( echo 'pip3 is required, please install it' && exit 1 )
mkdir -p $(HOME)/.vim/autoload
ln -sf $(CURDIR)/.vimrc $(HOME)/.vimrc
GOPATH=$(HOME) GOBIN=$(HOME)/bin vim +PlugInstall +qall
#sudo pip3 install --upgrade neovim # Required for deoplete
#python3 -m pip install --user --upgrade pynvim
git:
ln -sf $(CURDIR)/.gitconfig ~/.gitconfig
neovim:
mkdir -p $(HOME)/.config
ln -sf $(CURDIR)/nvim $(HOME)/.config/nvim
desktop: i3 xresources keyboard fonts copy-sounds termite screen-tear picom dunst
i3:
mkdir -p $(HOME)/.i3
ln -sf $(CURDIR)/.i3/* $(HOME)/.i3/
xresources:
ln -sf $(CURDIR)/.Xresources $(HOME)/.Xresources
ln -sf $(CURDIR)/.xinitrc $(HOME)/.xinitrc
termite:
mkdir -p $(HOME)/.config/termite
ln -sf $(CURDIR)/.termite-config $(HOME)/.config/termite/config
picom:
mkdir -p $(HOME)/.config/picom
ln -sf $(CURDIR)/.picom.conf $(HOME)/.config/picom/picom.conf
dunst:
mkdir -p $(HOME)/.config/dunst
ln -sf $(CURDIR)/.dunstrc $(HOME)/.config/dunst/dunstrc
khal:
mkdir -p $(HOME)/.config/khal
ln -sf $(CURDIR)/.khal-config $(HOME)/.config/khal/config
keyboard:
ln -sf $(CURDIR)/.xmodmaprc $(HOME)/.xmodmaprc
screen-tear:
sudo ln -sf $(CURDIR)/20-intel.conf /etc/X11/xorg.conf.d/20-intel.conf
fonts:
# on arch install awesome-terminal-fonts
sudo ln -sf $(CURDIR)/etc/fonts/local.conf /etc/fonts/local.conf
mkdir -p $(HOME)/.local/share/fonts
ln -sf $(CURDIR)/.fonts/* $(HOME)/.local/share/fonts/
copy-sounds:
sudo ln -sf $(CURDIR)/sounds $(HOME)/.sounds
gertty:
cp $(CURDIR)/.gertty.yaml $(HOME)/.gertty.yaml
pull-docker-containers:
docker pull jiahaog/nativefier
# Ensure docker containers use systemd-resolved
docker-dns:
echo 'nameserver 127.0.0.53' > /etc/resolv.conf
install-ubuntu:
# sudo sed -e 's/$/ universe/' -i /etc/apt/sources.list
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu noble stable"
# gh github cli
mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
apt update
apt install \
tmux \
vim \
neovim \
zsh \
wget \
git \
htop \
exuberant-ctags \
python3-dev \
python3-pip \
python3-jedi \
python3-neovim \
ca-certificates \
software-properties-common \
docker-ce \
docker-ce-cli \
containerd.io \
mosh \
jq \
language-pack-en \
bat \
fzf \
ripgrep \
nodejs npm # Used for vim-coc
#usermod -aG docker bradley
comms:
yay -S --noconfirm \
slack-desktop \
weechat \
neomutt \
mbsync \
msmtp \
aspell \
guile2.0 \
tcl \
ruby \
python2-websocket-client \
khal \
vdirsyncer \
davmail \
urlview \
jp2a \
w3m
yay: yay-pre
cd /tmp && \
git clone https://aur.archlinux.org/yay.git
cd /tmp/yay && \
makepkg -si
yay-pre:
sudo pacman -S --needed git base-devel
# TODO decide on either i3blocks or i3status
install-arch:
yay -S --noconfirm \
xorg-xinit \
xorg-server \
xf86-video-intel \
i3-gaps \
i3blocks \
i3status \
termite \
curl \
wget \
fzf \
ripgrep \
python \
python-pip \
picom \
bat \
jq \
feh \
dunst \
lib-notify \
blueman \
pulseaudio \
ttf-ubuntu-font-family \
ttf-font-awesome \
ttf-ms-fonts \
ttf-symbola \
dmenu \
pavucontrol \
openssh \
rsync \
mosh \
htop \
tree \
xsel \
clipit \
vim \
neovim \
tmux \
git \
nodejs \
arandr \
man \
docker \
inetutils \
universal-ctags-git