<commit_before>
source ./installers/common.sh
echo

e_header "Linking configurations"

FILES="${HOME}/.linkux-dev/conf/ubuntu/nvimrc
${HOME}/.linkux-dev/conf/ubuntu/tmux.conf
${HOME}/.linkux-dev/conf/ubuntu/zpreztorc
${HOME}/.linkux-dev/conf/ubuntu/taskrc
${HOME}/.linkux-dev/conf/ubuntu/ackrc"

for rcfile in $FILES; do
  ln -s "${rcfile}" ~/.$(basename $rcfile)
done

e_header "Install base16 themes"
[ ! -d "~/.config/base16-shell" ] && git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell

e_header "Update .zshrc for global"
if grep -Fxq "# start global setup" ~/.zshrc
then
  sed -i '/# start global setup/,/# end global setup/d' ~/.zshrc
fi<commit_msg>Ubuntu back old installed zsh scripts<commit_after>
source ./installers/common.sh
echo

e_header "Linking configurations"

FILES="${HOME}/.linkux-dev/conf/ubuntu/nvimrc
${HOME}/.linkux-dev/conf/ubuntu/tmux.conf
${HOME}/.linkux-dev/conf/ubuntu/zpreztorc
${HOME}/.linkux-dev/conf/ubuntu/taskrc
${HOME}/.linkux-dev/conf/ubuntu/ackrc"

for rcfile in $FILES; do
  if [ ! -f ~/.$(basename $rcfile).back ]; then
    mv ~/.$(basename $rcfile) ~/.$(basename $rcfile).back
  fi
  ln -s "${rcfile}" ~/.$(basename $rcfile)
done

e_header "Install base16 themes"
[ ! -d "~/.config/base16-shell" ] && git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell

e_header "Update .zshrc for global"
if grep -Fxq "# start global setup" ~/.zshrc
then
  sed -i '/# start global setup/,/# end global setup/d' ~/.zshrc
fi
{'fraction_non_alphanumeric': 0.18266048974189278, 'fraction_numerical': 0.010589013898080741, 'mean_word_length': 3.9250814332247557, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5805283', 'n_tokens_mistral': 618, 'n_tokens_neox': 570, 'n_words': 127}