<commit_before>#!/bin/bash

################################
#   TESTED WITH ARCH LINUX     #
################################

export BIN=Applications

# Get information on the newest versions of packages and their dependencies.
echo "Mise à jour des paquets\n"
su root -c 'pacman -Syu'

# Create BIN directory if no exists
mkdir ~/$BIN

# Install useful binaries
echo "Installation GIT et VIM\n"
su root -c 'pacman -S git --noconfirm'
su root -c 'pacman -S tree --noconfirm'

# Install more recent version of Vim
su root -c 'pacman -S vim --noconfirm'

# Install zsh and oh-my-zsh
echo "Installation ZSH et OH-MY-ZSH\n"
su root -c 'pacman -S zsh --noconfirm'
chsh -s $(which zsh)
sh -c "$(curl -fsSL \
  https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

# Adding diff-so-fancy for git log
# See https://github.com/git/git/tree/master/contrib/diff-highlight
echo "Installation diff-highlight\n"
su root -c 'ln -sf /usr/share/doc/git/contrib/diff-highlight/diff-highlight /bin/'
su root -c 'chmod +x /bin/diff-highlight'
git clone https://github.com/so-fancy/diff-so-fancy $HOME/$BIN/diff-so-fancy
echo "\n*** Don't forget to add $HOME/$BIN/diff-highlight to the PATH"

# Clone this repo and change to its directory
git clone https://github.com/auroredea/dotfiles $HOME/.dotfiles
cd $HOME/.dotfiles || exit

# symlink it up!
./system/symlink_setup.sh

echo "\n*** Finished setting up your system! Logout and login again."
<commit_msg>archlinux with sudo check, add some utilities and yaourt installation<commit_after>#!/bin/bash

################################
#TESTED WITH ARCH LINUX/MANJARO#
################################

export BIN=applications
timeout 2 sudo id && echo "sudo permitted" || exit

# Get information on the newest versions of packages and their dependencies.
echo "Mise à jour des paquets et installation base-devel\n"
su root -c 'pacman -Syu'
su root -c 'pacman -S base-devel --noconfirm'

# Create BIN directory if no exists
mkdir $HOME/$BIN

# Install useful binaries
echo "Installation GIT, VIM, JQ\n"
su root -c 'pacman -S git --noconfirm'
su root -c 'pacman -S tree --noconfirm'
su root -c 'pacman -S vim --noconfirm'
su root -c 'pacman -S jq --noconfirm'

# Install zsh and oh-my-zsh
echo "Installation ZSH avec OH-MY-ZSH\n"
su root -c 'pacman -S zsh --noconfirm'
chsh -s $(which zsh)
sh -c "$(curl -fsSL \
  https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

# Adding diff-so-fancy for git log
# See https://github.com/git/git/tree/master/contrib/diff-highlight
echo "Installation diff-highlight\n"
su root -c 'ln -sf /usr/share/doc/git/contrib/diff-highlight/diff-highlight /bin/'
su root -c 'chmod +x /bin/diff-highlight'
git clone https://github.com/so-fancy/diff-so-fancy $HOME/$BIN/diff-so-fancy
echo "\n*** Don't forget to add $HOME/$BIN/diff-highlight to the PATH"

# Clone this repo and change to its directory
git clone https://github.com/auroredea/dotfiles $HOME/.dotfiles
cd $HOME/.dotfiles || exit

# symlink it up!
./system/symlink_setup.sh

# Installing Yaourt
echo "Installing Yaourt for AUR facilities."
cd $HOME/$BIN
git clone https://aur.archlinux.org/package-query.git
cd package-query
makepkg -si
cd $HOME/$BIN
git clone https://aur.archlinux.org/yaourt.git
cd yaourt
makepkg -si
cd $HOME

echo "\n*** Finished setting up your system! Logout and login again."

{'fraction_non_alphanumeric': 0.1620494489127197, 'fraction_numerical': 0.0002978850163836759, 'mean_word_length': 3.8596237337192476, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '2315606', 'n_tokens_mistral': 1211, 'n_tokens_neox': 1142, 'n_words': 384}