.dotfiles/install.sh

20 lines
393 B
Bash
Executable File

#!/bin/bash
# - Prerequesits -
if [ "$(which git)" = "" ]; then
echo "-- Installing git --"
apt-get install git -y >/dev/null
fi
# - Cloning Repo -
echo "-- Cloning repo --"
cd $HOME
git init
git remote add origin https://github.com/jim-fx/.dotfiles.git
git checkout -f main
# - Executing the script -
echo "-- starting script --"
chmod +x ~/.dotfiles/setup.sh
~/.dotfiles/setup.sh