<commit_before>#!/bin/sh
log() {
	echo "[SETUP/linux.user] $@"
}

log "> Setup"

cd ~;
log "> cleaning ~/.z*"
rm -rf ~/.z*

log "> linking zsh files"
[ -f ${HERE}/.zshrc ] && ln -s ${HERE}/.zshrc ~/
[ -f ${HERE}/.zprofile ] && ln -s ${HERE}/.zprofile ~/
[ -f ${HERE}/.zshenv ] && ln -s ${HERE}/.zshenv ~/

# log "> set zsh as shell"
# chsh -s /bin/zsh $(whoami)

log "> install shellspec"
[ ! -d "$HOME/.local/lib/shellspec" ] \
    && curl -fsSL https://git.io/shellspec | sh

log "> install nvm"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh \
    | sh
    
log "> install tusk"
curl -sL https://git.io/tusk \
    | sh -s -- -b /usr/local/bin latest
tusk --install-completion zsh
<commit_msg>Update setup.linux.user.sh<commit_after>#!/bin/sh
log() {
	echo "[SETUP/linux.user] $@"
}

log "> Setup"

cd ~;
log "> cleaning ~/.z*"
rm -rf ~/.z*

log "> linking zsh files"
[ -f ${HERE}/.zshrc ] && ln -s ${HERE}/.zshrc ~/
[ -f ${HERE}/.zprofile ] && ln -s ${HERE}/.zprofile ~/
[ -f ${HERE}/.zshenv ] && ln -s ${HERE}/.zshenv ~/

# log "> set zsh as shell"
chsh -s /bin/zsh $(whoami)

log "> install shellspec"
[ ! -d "$HOME/.local/lib/shellspec" ] \
    && curl -fsSL https://git.io/shellspec | sh

log "> install nvm"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh \
    | sh
    
log "> install tusk"
curl -sL https://git.io/tusk \
    | sh -s -- -b /usr/local/bin latest
tusk --install-completion zsh

{'fraction_non_alphanumeric': 0.2339986235375086, 'fraction_numerical': 0.0055058499655884375, 'mean_word_length': 2.4951923076923075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 6, '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': '6937185', 'n_tokens_mistral': 649, 'n_tokens_neox': 630, 'n_words': 143}