zsh: thermokar.st/now helper func

This commit is contained in:
Matthew Ryan Dillon 2025-12-17 21:33:23 -05:00
parent 5ae4c105b1
commit ad5da28996

View file

@ -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" [ -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" [ "$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
}