Add caddyfmt alias

This commit is contained in:
Eric Torres 2024-02-27 16:15:25 -08:00
parent 6d05011aa3
commit 70cf4b8cd2

View File

@ -50,7 +50,7 @@ alias sshconfig='"${EDITOR}" -- ${HOME}/.ssh/config'
# system
alias myip='curl ifconfig.me'
alias caddyfmt='for dropin in ~/Containers/caddy/dropins/*; do docker exec caddy caddy fmt --overwrite /etc/caddy/dropins/"$dropin"; done'
alias caddyfmt='for dropin in ~/Containers/caddy/dropins/*; do docker exec caddy caddy fmt --overwrite /etc/caddy/dropins/"${dropin##*/}"; done'
alias caddyreload='docker exec caddy caddy fmt --overwrite /etc/caddy/Caddyfile && docker exec caddy caddy reload -c /etc/caddy/Caddyfile'
# zsh