From 70cf4b8cd28a2f48d5e3036ef1d11e8ee8f91c2a Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Tue, 27 Feb 2024 16:15:25 -0800 Subject: [PATCH] Add caddyfmt alias --- zsh/.config/zsh/00-common-aliases.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.config/zsh/00-common-aliases.zsh b/zsh/.config/zsh/00-common-aliases.zsh index 42c5e82..e17c2b8 100644 --- a/zsh/.config/zsh/00-common-aliases.zsh +++ b/zsh/.config/zsh/00-common-aliases.zsh @@ -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