From ad5da28996fc8e2a9db926a6ac1a0d0b5c3c7fa0 Mon Sep 17 00:00:00 2001 From: Matthew Ryan Dillon Date: Wed, 17 Dec 2025 21:33:23 -0500 Subject: [PATCH] zsh: thermokar.st/now helper func --- home/dot_zshrc.tmpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/home/dot_zshrc.tmpl b/home/dot_zshrc.tmpl index 3a2fc0e..48946a3 100644 --- a/home/dot_zshrc.tmpl +++ b/home/dot_zshrc.tmpl @@ -49,3 +49,15 @@ eval "$(jj util completion zsh)" [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" [ "$TERM" = "xterm-kitty" ] && alias ssh="TERM=xterm ssh" + +function update_now() { + cd ~/projects/personal/thermokar.st || return + jj git fetch --remote pingo && jj new deploy + hx now.md + if [[ -n $(jj diff) ]]; then + jj commit -m "$(now)" + jj tug + jj git push --remote pingo + jj git push --remote dokku + fi +}