-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
126 lines (113 loc) · 2.18 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
UNAME_S := $(shell uname -s)
define packages
base-devel \
coreutils \
entr \
fd \
fzf \
ghostty \
git \
git-delta \
go \
jq \
kubectl \
man \
minikube \
neovim \
nodejs \
npm \
obsidian \
parallel \
podman \
python \
ripgrep \
rofi \
sad \
stow \
timeshift \
tmux \
ttf-jetbrains-mono-nerd \
unzip \
vim \
xorg-xrandr \
xsel \
yq \
zig \
zsh
endef
.PHONY: arch-init
arch-init: arch-pkgs arch-aur-pkgs tpm gopkgs zsh link
.PHONY: zsh
zsh:
chsh -s '/usr/bin/zsh'
.PHONY: tpm
tpm:
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# <ctrl+a>I to install packages
.PHONY: link
link:
stow --verbose --restow --target=$$HOME .
sudo stow --verbose --restow --dir ./bin --target /usr/local/bin .
sudo stow --verbose --restow --dir ./etc/X11/xorg.conf.d --target /etc/X11/xorg.conf.d .
.PHONY: link-delete
link-delete:
stow --verbose --target=$$HOME --delete sf.
.PHONY: arkenfox
arkenfox:
$$HOME/.mozilla/firefox/user.arkenfox/updater.sh
$$HOME/.mozilla/firefox/user.arkenfox/prefsCleaner.sh
.PHONY: arch-pkgs
arch-pkgs:
sudo pacman --needed -S ${packages}
.PHONY: arch-aur-pkgs
ifeq (, $(shell command -v yay 2> /dev/null))
arch-aur-pkgs: arch-yay
else
arch-aur-pkgs:
endif
yay -S 1password 1password-cli golangci-lint ncspot
.PHONY: arch-yay
arch-yay:
mkdir -p ~/dev/aur/
git clone https://aur.archlinux.org/yay.git ~/dev/aur/yay
cd ~/dev/aur/yay && makepkg -si
yay -Y --gendb
yay -Syu --devel
yay -Y --devel --save
.PHONY: osx-packages
osx-packages:
brew install \
bash \
coreutils \
entr \
fd \
fzf \
go
jq \
kubectl \
neovim \
nodejs \ # needed for some Mason LSPs
npm \ # needed for some Mason LSPs
parallel \
podman \
python \
ripgrep \
sad \
stow \
tmux \
vim \
yq \
brew install --cask \
alacritty \
font-jetbrains-mono-nerd-font
.PHONY: osx-shims
osx-shims:
# https://gist.github.com/bbqtd/a4ac060d6f6b9ea6fe3aabe735aa9d95
# fix osx tmux colors
curl -LO https://invisible-island.net/datafiles/current/terminfo.src.gz && gunzip terminfo.src.gz
/usr/bin/tic -xe tmux-256color terminfo.src
rm terminfo.src
sudo sh -c 'echo /usr/local/opt/bash/bin/bash >> /etc/shells'
.PHONY: gopkgs
gopkgs:
go install github.com/charmbracelet/mods@latest