diff --git a/dotfiles/.local/Brewfile.terminal b/dotfiles/.local/Brewfile.terminal index 72997e75..b2779b3f 100644 --- a/dotfiles/.local/Brewfile.terminal +++ b/dotfiles/.local/Brewfile.terminal @@ -113,4 +113,4 @@ brew "tmux" brew "watchexec" brew "yj" brew "vim" -brew "whalebrew" \ No newline at end of file +brew "whalebrew" diff --git a/dotfiles/.local/Taskfile-localhost.yml b/dotfiles/.local/Taskfile-localhost.yml new file mode 100644 index 00000000..5ee8149f --- /dev/null +++ b/dotfiles/.local/Taskfile-localhost.yml @@ -0,0 +1,19 @@ +--- +version: '3' + +tasks: + provision:dev: + deps: + - provision:terminal + cmds: + - brew bundle --file "$HOME/.local/Brewfile.dev" + + provision:full: + deps: + - provision:dev + cmds: + - brew bundle --file "$HOME/.local/Brewfile.full" + + provision:terminal: + cmds: + - brew bundle --file "$HOME/.local/Brewfile.terminal" diff --git a/dotfiles/.local/aliases b/dotfiles/.local/aliases index b780ae85..17ff7d2f 100644 --- a/dotfiles/.local/aliases +++ b/dotfiles/.local/aliases @@ -69,6 +69,9 @@ alias rclonegui='rclone rcd --rc-web-gui --rc-user=admin --rc-pass=pass --rc-ser # Reboot the computer alias reboot='sudo /sbin/reboot' +# Local Task alias +alias run="task --taskfile $HOME/.local/Taskfile.yml" + # Make rm command verbose alias rm='rm -vi' diff --git a/dotfiles/.local/bin/install-dev-tools b/dotfiles/.local/bin/provision similarity index 69% rename from dotfiles/.local/bin/install-dev-tools rename to dotfiles/.local/bin/provision index bf305b61..6f418159 100644 --- a/dotfiles/.local/bin/install-dev-tools +++ b/dotfiles/.local/bin/provision @@ -9,8 +9,9 @@ if ! type brew &> /dev/null; then fi fi -# Install Homebrew bundle +# Install Homebrew bundle and go-task brew tap Homebrew/bundle +brew install go-task/tap/go-task -pipx install ansibleconnect -pipx install asciinema \ No newline at end of file +# Use run alias to invoke the `$HOME/.local/Taskfile.yml` +run localhost:provision:terminal diff --git a/dotfiles/.local/bin/update-taskfiles b/dotfiles/.local/bin/update-taskfiles new file mode 100644 index 00000000..635f34e8 --- /dev/null +++ b/dotfiles/.local/bin/update-taskfiles @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +curl -sSL https://gitlab.com/megabyte-labs/common/shared/-/archive/master/shared-master.tar.gz > shared-master.tar.gz +tar -xzf shared-master.tar.gz > /dev/null +rm shared-master.tar.gz +rm -rf "$HOME/.local/taskfiles" +mv shared-master/common/.config/taskfiles "$HOME/.local/taskfiles" +mv shared-master/Taskfile.yml "$HOME/.local/Taskfile.yml" +rm -rf shared-master diff --git a/dotfiles/.local/taskfiles/.gitkeep b/dotfiles/.local/taskfiles/.gitkeep new file mode 100644 index 00000000..e69de29b