<commit_before>#!/bin/bash
set -euo pipefail
IFS=$'\n\t'


# Change directory into the repository if called from elsewhere
cd "$(dirname "$0")"
DOTDIR=$(pwd)

# Update all submodules
git submodule init && git submodule update

echo -e "\n\nSymlinking configs, rc files, etc. ..."
# Create symlinks into the home dir to enable usage of the files
ln -sf $DOTDIR/.oh-my-zsh $HOME
ln -sf $DOTDIR/.zshrc     $HOME
ln -sf $DOTDIR/.zsh       $HOME
ln -sf $DOTDIR/.vim       $HOME
ln -sf $DOTDIR/.vimrc     $HOME
#ln -sf $DOTDIR/.tmux.conf $HOME
ln -sf $DOTDIR/.atom      $HOME
ln -sf $DOTDIR/.i3        $HOME
ln -sf $DOTDIR/.compton.conf $HOME

# X server files
ln -sf $DOTDIR/.Xdefaults        $HOME
ln -sf $DOTDIR/.Xresources.light $HOME
ln -sf $DOTDIR/.Xresources.dark  $HOME

# Emacs.d directory
ln -sf $DOTDIR/.emacs.d          $HOME


# Setup git config
echo -e "\n\nSetting up global git config ..."
git config --global include.path "${DOTDIR}/gitconfig_global"
git config --global core.excludesfile "${DOTDIR}/gitignore_global"
git config --global core.attributesfile "${DOTDIR}/gitattributes_global"

# Show the entire config just to be sure
git config -l


echo -e "\n\nDownloading additional fonts ..."
# Download a fonts from the web and install them.<commit_msg>Remove emacs from linking for now ...<commit_after>#!/bin/bash
set -euo pipefail
IFS=$'\n\t'


# Change directory into the repository if called from elsewhere
cd "$(dirname "$0")"
DOTDIR=$(pwd)

# Update all submodules
git submodule init && git submodule update

echo -e "\n\nSymlinking configs, rc files, etc. ..."
# Create symlinks into the home dir to enable usage of the files
ln -sf $DOTDIR/.oh-my-zsh $HOME
ln -sf $DOTDIR/.zshrc     $HOME
ln -sf $DOTDIR/.zsh       $HOME
ln -sf $DOTDIR/.vim       $HOME
ln -sf $DOTDIR/.vimrc     $HOME
#ln -sf $DOTDIR/.tmux.conf $HOME
ln -sf $DOTDIR/.atom      $HOME
ln -sf $DOTDIR/.i3        $HOME
ln -sf $DOTDIR/.compton.conf $HOME

# X server files
ln -sf $DOTDIR/.Xdefaults        $HOME
ln -sf $DOTDIR/.Xresources.light $HOME
ln -sf $DOTDIR/.Xresources.dark  $HOME


# Setup git config
echo -e "\n\nSetting up global git config ..."
git config --global include.path "${DOTDIR}/gitconfig_global"
git config --global core.excludesfile "${DOTDIR}/gitignore_global"
git config --global core.attributesfile "${DOTDIR}/gitattributes_global"

# Show the entire config just to be sure
git config -l


echo -e "\n\nDownloading additional fonts ..."
# Download a fonts from the web and install them.
{'fraction_non_alphanumeric': 0.1308, 'fraction_numerical': 0.0016, 'mean_word_length': 3.127062706270627, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1026762', 'n_tokens_mistral': 849, 'n_tokens_neox': 852, 'n_words': 305}