Skip to content

Instantly share code, notes, and snippets.

@iarigby
Last active August 17, 2022 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iarigby/a120032eb2c88d193fa3ce6232f6ff0f to your computer and use it in GitHub Desktop.
Save iarigby/a120032eb2c88d193fa3ce6232f6ff0f to your computer and use it in GitHub Desktop.
initialise fresh install
echo "make sure that you have these packages installed: git tmux zsh"
if ! command -v git
then
echo "git is not installed. Install it in another tab and press any key to continue"
read confirm
fi
if ! command -v yadm
then
if groups | grep -E '(sudo|wheel|root)' &> /dev/null; then
sudo curl -fLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm && sudo chmod a+x /usr/local/bin/yadm
else
echo "you do not have yadm installed. Install it in another tab and press any key to continue"
read confirm
fi
fi
yadm clone https://github.com/iarigby/dotfiles.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment