install.fairie/dotfiles/.local/bin/provision
Brian Zalewski 50b119eba8 Update dotfiles/.local/bin/provision
Deleted dotfiles/.local/taskfiles/.gitkeep
2022-11-19 13:36:28 +00:00

22 lines
627 B
Bash

#!/usr/bin/env bash
# Install Homebrew
if ! type brew &> /dev/null; then
if type sudo &> /dev/null && sudo -n true; then
echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
fi
# Install Homebrew bundle and go-task
brew install go-task/tap/go-task
brew install jq
brew install yq
# Run dotfiles install scripts
chmod +x "$HOME/.local/bin/install-dotfiles"
install-dotfiles
# Use run alias to invoke the `$HOME/.local/Taskfile.yml`
run localhost:provision