<commit_before>#!/bin/bash

DOT_FILES_DIR="$( cd "$( dirname "$0" )" && pwd )"

echo "Make links between $DOT_FILES_DIR and $HOME"
rm -f ~/.hushlogin && ln -sf "$DOT_FILES_DIR/hushlogin" ~/.hushlogin
rm -f ~/.gitconfig && ln -sf "$DOT_FILES_DIR/gitconfig" ~/.gitconfig
rm -rf ~/.vim && ln -sf "$DOT_FILES_DIR/vim" ~/.vim
rm -f ~/.vimrc && ln -sf "$DOT_FILES_DIR/vimrc" ~/.vimrc

echo "Install vim-plug and other plugins"
if [ ! -f $DOT_FILES_DIR/vim/autoload/plug.vim ]; then
    curl -fLo $DOT_FILES_DIR/vim/autoload/plug.vim --create-dirs \
        https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
else
    vim +PlugUpgrade +qall &>/dev/null
fi
vim +PlugClean! +qall &>/dev/null
vim +PlugUpdate +qall &>/dev/null

echo "Install powerline fonts"
if [ ! -d ~/powerline-fonts ]; then
    git clone --recursive --depth 1 \
        https://github.com/powerline/fonts/ \
        ~/powerline-fonts
    cd ~/powerline-fonts
else
    cd ~/powerline-fonts
    git pull
fi
./install.sh &>/dev/null
cd $OLDPWD

echo "Install awesome terminal fonts"
if [ ! -d ~/awesome-fonts ]; then
    git clone --recursive --depth 1 \
        https://github.com/gabrielelana/awesome-terminal-fonts/ \
        ~/awesome-fonts
    cd ~/awesome-fonts
else
    cd ~/awesome-fonts
    git pull
fi
./install.sh &>/dev/null
cd $OLDPWD

if [ -n "$DISPLAY" ]; then
    echo "Configure Gnome Terminal profile"
    dconf reset -f "/org/gnome/terminal/"
    cat gnome-terminal.ini | dconf load "/org/gnome/terminal/"
fi<commit_msg>INSTALL: leave only link to {rc, dot, config}files<commit_after>#!/bin/bash

DOT_FILES_DIR="$( cd "$( dirname "$0" )" && pwd )"

echo "Make links between $DOT_FILES_DIR and $HOME"
rm -f ~/.hushlogin && ln -sf "$DOT_FILES_DIR/hushlogin" ~/.hushlogin
rm -f ~/.gitconfig && ln -sf "$DOT_FILES_DIR/gitconfig" ~/.gitconfig
rm -rf ~/.vim && ln -sf "$DOT_FILES_DIR/vim" ~/.vim
rm -f ~/.vimrc && ln -sf "$DOT_FILES_DIR/vimrc" ~/.vimrc
rm -f ~/.config/Code/User/settings.json && ln -sf "$DOT_FILES_DIR/vscode/settings.json" ~/.config/Code/User/settings.json
rm -f ~/.config/Code/User/locale.json && ln -sf "$DOT_FILES_DIR/vscode/locale.json" ~/.config/Code/User/locale.json
rm -f ~/.config/Code/User/vsicons.settings.json && ln -sf "$DOT_FILES_DIR/vscode/vsicons.settings.json" ~/.config/Code/User/vsicons.settings.json
rm -f ~/.config/Code/User/keybindings.json && ln -sf "$DOT_FILES_DIR/vscode/keybindings.json" ~/.config/Code/User/keybindings.json
{'fraction_non_alphanumeric': 0.17515274949083504, 'fraction_numerical': 0.001629327902240326, 'mean_word_length': 3.2054794520547945, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 3, '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': '555415', 'n_tokens_mistral': 1010, 'n_tokens_neox': 931, 'n_words': 219}