2024-04-14 18:41:15 -07:00
|
|
|
# Commands to run before anything
|
|
|
|
[pre_commands]
|
|
|
|
# "Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"
|
|
|
|
|
|
|
|
|
|
|
|
# Commands to run after anything
|
|
|
|
[post_commands]
|
|
|
|
# "Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"
|
|
|
|
|
|
|
|
|
|
|
|
# Custom commands
|
|
|
|
[commands]
|
|
|
|
"Fish Shell Completions" = "fish_update_completions"
|
2024-04-21 17:28:42 -07:00
|
|
|
{{ if lookPath "yay" -}}
|
2024-04-21 17:31:11 -07:00
|
|
|
"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'"
|
2024-04-21 17:28:42 -07:00
|
|
|
{{ end -}}
|
|
|
|
{{if lookPath "brew" -}}
|
2024-04-21 17:31:11 -07:00
|
|
|
"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'"
|
2024-04-21 17:33:41 -07:00
|
|
|
{{ end -}}
|