#!/bin/bash
apt update
apt install -y mc git vim fzf ripgrep net-tools dnsutils
cd /etc/vim
wget https://download.al1al7.de/vim/vim_config_updater.sh
chmod +x vim_config_updater.sh
./vim_config_updater.sh

if [ -e "/usr/share/bash-completion/completions/fzf" ]; then
	echo "source /usr/share/bash-completion/completions/fzf" >> /etc/bash.bashrc
fi

if [ -e "/usr/share/doc/fzf/examples/completion.bash" ]; then
	echo "source /usr/share/doc/fzf/examples/completion.bash" >> /etc/bash.bashrc
fi

if [ -e "/usr/share/doc/fzf/examples/key-bindings.bash" ]; then
	echo "source /usr/share/doc/fzf/examples/key-bindings.bash" >> /etc/bash.bashrc
fi


source /etc/bash.bashrc

exit 0

