Skip to content

Instantly share code, notes, and snippets.

@konstruktoid
Last active February 4, 2022 10:35
Show Gist options
  • Save konstruktoid/66e6553458e6caa7a13f23576c410b3f to your computer and use it in GitHub Desktop.
Save konstruktoid/66e6553458e6caa7a13f23576c410b3f to your computer and use it in GitHub Desktop.
MacOS X things
#!/bin/sh
echo "this will exit so you can go through the code before actually doing anything"
exit 0
if ! [ "$SHELL" = "$(which bash)" ]; then
chsh -s "$(which bash)"
fi
curl -sSL https://raw.githubusercontent.com/konstruktoid/dotfiles/master/.bashrc > ~/.bashrc
curl -sSL https://raw.githubusercontent.com/konstruktoid/dotfiles/master/.gitconfig > ~/.gitconfig
curl -sSL https://raw.githubusercontent.com/konstruktoid/dotfiles/master/.vimrc > ~/.vimrc
ln -vsf ~/.bashrc ~/.profile
if ! command -v brew 1>/dev/null; then
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
{
echo 'export BASH_SILENCE_DEPRECATION_WARNING=1'
echo 'export PATH="$(which ruby):$PATH"'
echo
echo 'eval "$(brew shellenv)"'
echo 'PS1="\w \$"'
} >> ~/.bashrc
brew analytics off
brew tap hashicorp/tap
brew install coreutils jq packer python3 ruby shellcheck vagrant hashicorp/tap/terraform
python3 -m pip install --upgrade pip
export PATH="$(which ruby):$PATH"
gem install mdl
"$(which python)" -m pip install -r https://raw.githubusercontent.com/konstruktoid/dotfiles/master/python-requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment