Update .config/packages/install-brew-packages.fish

Update .config/topgrade.d/01-commands.toml
This commit is contained in:
punkfairie 2024-04-21 17:28:42 -07:00
parent a37b56d5fb
commit f2e9a1b393
No known key found for this signature in database
GPG key ID: 1B492EAEA989C054
2 changed files with 6 additions and 4 deletions

View file

@ -3,5 +3,5 @@
#{{ include "dot_config/packages/Brewfile" | sha256sum }}
brew bundle install --file "$HOME/.config/packages/Brewfile"
brew bundle install --file {{ joinPath .chezmoi.homeDir ".config/packages/Brewfile" }}
{{- end -}}

View file

@ -11,6 +11,8 @@
# Custom commands
[commands]
"Fish Shell Completions" = "fish_update_completions"
{{- if lookPath "yay" }}
"Update package list" = "-i yay -Qeq > {{ joinPath .chezmoi.sourceDir "dot_config/packages/" .chezmoi.hostname }} && set_color green && printf '%s'  && set_color normal && printf '%s' ' done\n'; exit"
{{- end -}}
{{ if lookPath "yay" -}}
"Update package list" = "yay -Qeq > {{ joinPath .chezmoi.sourceDir 'dot_config/packages/' .chezmoi.hostname }} && set_color green && printf '%s'  && set_color normal && printf '%s' ' done\n'"
{{ end -}}
{{if lookPath "brew" -}}
"Update Brewfile" = "brew bundle dump --describe --force --file={{ joinPath .chezmoi.sourceDir 'dot_config/packages/Brewfile' }} && set_color green && printf '%s'  && set_color normal && printf '%s' ' done\n'"