Skip to content

Instantly share code, notes, and snippets.

@kodeFant
Last active February 5, 2019 14:57
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 kodeFant/98e6d05e42b8a4acedd6ea7aaae26794 to your computer and use it in GitHub Desktop.
Save kodeFant/98e6d05e42b8a4acedd6ea7aaae26794 to your computer and use it in GitHub Desktop.
system_type=$(uname -s)
if [ "$system_type" = "Darwin" ]; then
# install homebrew if it's missing
if ! command -v brew >/dev/null 2>&1; then
echo "Installing homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
fi
if [ "$system_type" = "Linux" ]; then
# install homebrew if it's missing
if ! command -v brew >/dev/null 2>&1; then
echo "Installing linuxbrew"
sudo apt install linuxbrew-wrapper
fi
fi
brew install yadm
yadm clone https://github.com/kodeFant/dotfiles.git
yadm status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment