-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (39 loc) · 1.49 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
.PHONY: all
PACKAGES = ./packages
BREW_BUNDLE_DUMP = brew bundle dump --no-lock --describe --force --file
all: brewfile asdf pyenv pipx krew helm rust-cargo github-cli-extension ollama
brewfile: brewfile-formulae brewfile-casks brewfile-taps brewfile-mas brewfile-vscode brewfile-whalebrew
brewfile-formulae:
$(BREW_BUNDLE_DUMP) $(PACKAGES)/formulae.Brewfile --brews
brewfile-casks:
$(BREW_BUNDLE_DUMP) $(PACKAGES)/casks.Brewfile --casks
brewfile-taps:
$(BREW_BUNDLE_DUMP) $(PACKAGES)/taps.Brewfile --taps
brewfile-mas:
$(BREW_BUNDLE_DUMP) $(PACKAGES)/mas.Brewfile --mas
brewfile-vscode:
$(BREW_BUNDLE_DUMP) $(PACKAGES)/vscode.Brewfile --vscode
brewfile-whalebrew:
$(BREW_BUNDLE_DUMP) $(PACKAGES)/whalebrew.Brewfile --whalebrew
asdf:
asdf plugin list > $(PACKAGES)/asdf-plugins
pyenv:
pyenv versions --bare --skip-aliases --skip-envs > $(PACKAGES)/pyenv-versions
pipx:
pipx list --short > $(PACKAGES)/pipx-apps
krew:
krew list > $(PACKAGES)/krew-plugins
helm:
helm repo list > $(PACKAGES)/helm-repos
rust-cargo:
cat ~/.cargo/.crates2.json | jq -r '.installs | keys[] | split(" ")[0]' > $(PACKAGES)/rust-cargo-packages
github-cli-extension:
gh extension list | awk -F'\t' '{print $$2}' > $(PACKAGES)/github-cli-extensions
ollama:
@pgrep -x "ollama" > /dev/null && ollama list | awk 'NR > 1 { print $$1 }' > $(PACKAGES)/ollama-models && \
echo "Ollama Model List Dumped" || \
echo "Dump Skipped! Ollama Service is Down"
# TODO:
# - hugging-face-models (Future)
# NOTE:
# - cpanfile (Excluded)