<commit_before>.PHONY: arch debian arch-packages debian-packages

PACKMAN_REPOS := /etc/pacman.conf.tainted

default: arch
arch: arch-packages link-config set-shell
debian: debian-packages link-config set-shell

arch-packages: $(PACMAN_REPOS)
	sudo pacman -Sy yaourt termite infinality-bundle
	yaourt -S --needed --noconfirm `cat .arch/packages`

$(PACMAN_REPOS):
	cat .arch/repos | sudo tee -a /etc/pacman.conf
	touch $(PACMAN_REPOS)

debian-packages:
	sudo apt-get update
	sudo apt-get dist-upgrade -y
	sudo apt-get install -y `cat .debian/packages`

link-config:
	stow -t ~ --restow `ls -d */`

set-shell:
	chsh -s `which zsh`<commit_msg>Add make target for linking custom executables<commit_after>.PHONY: arch debian arch-packages debian-packages

PACKMAN_REPOS := /etc/pacman.conf.tainted

default: arch
arch: arch-packages link-config set-shell
debian: debian-packages link-config set-shell

arch-packages: $(PACMAN_REPOS)
	sudo pacman -Sy yaourt termite infinality-bundle
	yaourt -S --needed --noconfirm `cat .arch/packages`

$(PACMAN_REPOS):
	cat .arch/repos | sudo tee -a /etc/pacman.conf
	touch $(PACMAN_REPOS)

debian-packages:
	sudo apt-get update
	sudo apt-get dist-upgrade -y
	sudo apt-get install -y `cat .debian/packages`

link-config:
	stow -t ~ --restow `ls -d */`

link-bin:
	rm -rf ~/bin; mkdir -p ~/bin
	cd $(HOME)/src/env.nodes/$(shell hostname -s)/bin && stow -t ~/bin --restow .
	cd $(HOME)/src/env.sh && stow -t ~/bin --restow `ls -d */`
	cd $(HOME)/Dropbox/.bin && stow -t ~/bin --restow .

set-shell:
	chsh -s `which zsh`
{'fraction_non_alphanumeric': 0.14276485788113696, 'fraction_numerical': 0.0, 'mean_word_length': 3.5558823529411763, 'pattern_counts': {'":': 0, '<': 3, '<?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': '27617', 'n_tokens_mistral': 619, 'n_tokens_neox': 581, 'n_words': 164}