Update dotfiles/.local/Taskfile-localhost.yml, dotfiles/.local/taskfiles/.gitkeep, dotfiles/.local/Brewfile.terminal, dotfiles/.local/bin/provision, dotfiles/.local/aliases, dotfiles/.local/bin/update-taskfiles
This commit is contained in:
parent
fb2ff5a36d
commit
c0fb2d4207
6 changed files with 36 additions and 4 deletions
|
@ -113,4 +113,4 @@ brew "tmux"
|
|||
brew "watchexec"
|
||||
brew "yj"
|
||||
brew "vim"
|
||||
brew "whalebrew"
|
||||
brew "whalebrew"
|
||||
|
|
19
dotfiles/.local/Taskfile-localhost.yml
Normal file
19
dotfiles/.local/Taskfile-localhost.yml
Normal file
|
@ -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"
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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
|
||||
# Use run alias to invoke the `$HOME/.local/Taskfile.yml`
|
||||
run localhost:provision:terminal
|
9
dotfiles/.local/bin/update-taskfiles
Normal file
9
dotfiles/.local/bin/update-taskfiles
Normal file
|
@ -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
|
0
dotfiles/.local/taskfiles/.gitkeep
Normal file
0
dotfiles/.local/taskfiles/.gitkeep
Normal file
Loading…
Reference in a new issue