<commit_before>OS := $(shell uname | tr '[:upper:]' '[:lower:]')
PACKAGES := home "home.$(OS)"

.FORCE: install
install: link

.FORCE: uninstall
uninstall: unlink

.FORCE: link
link:
	stow --stow --override=".*" -vv -d "$(PWD)" -t "$(HOME)" $(PACKAGES)

.FORCE: unlink
unlink:
	stow --delete -vv -d "$(PWD)" -t "$(HOME)" $(PACKAGES)

.FORCE: install-vscode-extensions
install-vscode-extensions:
	@while read in; do code --install-extension "$$in"; done < vscode-extensions.txt

.FORCE: update-vscode-extensions
update-vscode-extensions:
	@code --list-extensions | tee vscode-extensions.txt
<commit_msg>Only install missing vscode extensions<commit_after>OS := $(shell uname | tr '[:upper:]' '[:lower:]')
PACKAGES := home "home.$(OS)"

.FORCE: install
install: link install-vscode-extensions

.FORCE: uninstall
uninstall: unlink

.FORCE: link
link:
	stow --stow --override=".*" -vv -d "$(PWD)" -t "$(HOME)" $(PACKAGES)

.FORCE: unlink
unlink:
	stow --delete -vv -d "$(PWD)" -t "$(HOME)" $(PACKAGES)

.FORCE: install-vscode-extensions
install-vscode-extensions:
	@code --list-extensions | sort -f | diff --new-line-format= --unchanged-line-format= vscode-extensions.txt - | xargs -L1 echo code --install-extension

.FORCE: update-vscode-extensions
update-vscode-extensions:
	@code --list-extensions | tee vscode-extensions.txt

{'fraction_non_alphanumeric': 0.18867924528301888, 'fraction_numerical': 0.0007547169811320754, 'mean_word_length': 4.241106719367589, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5333166', 'n_tokens_mistral': 505, 'n_tokens_neox': 484, 'n_words': 127}