Skip to content

Instantly share code, notes, and snippets.

@AlexRogalskiy
Created February 27, 2022 22:24
Show Gist options
  • Save AlexRogalskiy/e276e5ddb82a61befa58aec3acedec87 to your computer and use it in GitHub Desktop.
Save AlexRogalskiy/e276e5ddb82a61befa58aec3acedec87 to your computer and use it in GitHub Desktop.
bootstrap dotfiles
#!/bin/sh
which git >/dev/null 2>&1
[ $? -ne 0 ] && echo "git required" && exit 1
git clone git://github.com/steakknife/dotfiles.git ~/.dotfiles
[ $? -ne 0 ] && echo "could not clone repo && exit 1
pushd . >/dev/null 2>&1
cd ~/.dotfiles
which ruby >/dev/null 2>&1 && which gem >/dev/null 2>&1
[ $? -ne 0 ] && echo "ruby and ruby gems required" && exit 1
which rake >/dev/null 2>&1 || gem install rake
[ $? -ne 0 ] && echo "could not install rake" && exit 1
rake install
popd >/dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment