.dotfiles/install.sh

20 lines
393 B
Bash
Raw Normal View History

2020-11-07 16:57:15 +01:00
#!/bin/bash
2020-11-07 17:07:59 +01:00
# - Prerequesits -
2020-11-07 17:12:42 +01:00
if [ "$(which git)" = "" ]; then
2021-06-22 13:05:12 +02:00
echo "-- Installing git --"
2020-11-08 21:55:05 +01:00
apt-get install git -y >/dev/null
fi
2020-11-08 21:55:05 +01:00
# - Cloning Repo -
echo "-- Cloning repo --"
cd $HOME
git init
git remote add origin https://github.com/jim-fx/.dotfiles.git
git checkout -f main
2020-11-07 17:07:59 +01:00
# - Executing the script -
echo "-- starting script --"
chmod +x ~/.dotfiles/setup.sh
2020-11-08 21:55:05 +01:00
~/.dotfiles/setup.sh