-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (42 loc) · 1.33 KB
/
Makefile
File metadata and controls
49 lines (42 loc) · 1.33 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
SUBMODULES := $(shell git config --file .gitmodules --get-regexp path | awk '{ print $$2 }')
default:format update link install
format:
@echo "Formatting QML files..."
@if command -v /usr/lib/qt6/bin/qmlformat >/dev/null 2>&1; then \
find quickshell/.config/quickshell -name "*.qml" -exec /usr/lib/qt6/bin/qmlformat -i {} \;; \
fi
@echo "Formatting Lua files..."
@if command -v stylua >/dev/null 2>&1; then \
cd nvim/.config/nvim && stylua .; \
fi
clean:
rm -r /home/deathbeam/.cache/nvim/tree-sitter-* || true
rm -r ~/.local/share/nvim/site/ || true
rm -r nvim/.config/nvim/pack/bundle/start/nvim-treesitter || true
find ~ -xtype l -print -delete || true
link:
mkdir -p ~/.local/bin
stow --target ~ --restow `ls -d */`
update:
git submodule sync --recursive
for sub in $(SUBMODULES); do \
echo "Updating submodule $$sub"; \
if [ "$$sub" != "zsh/.fzf" ]; then \
git submodule update --init --recursive "$$sub"; \
git submodule update --remote "$$sub"; \
fi; \
done
install:
zsh/.fzf/install --all --no-update-rc --no-completion --no-bash --no-fish
zsh -ic 'fast-theme base16'
nvim --headless \
+MasonUpdateSync \
+TSUpdateSync \
+UpdateRemotePlugins \
+'helptags ALL' \
+qall
python scripts/generate-cheatsheet.py
python scripts/generate-menu.py
uninstall:
zsh/.fzf/uninstall
stow --target ~ --delete `ls -d */`