swapped macro order. added dcshell

This commit is contained in:
Ted Kulp
2024-04-04 13:40:28 -04:00
parent 5629270ba2
commit 1fe12defda
2 changed files with 6 additions and 0 deletions

View File

@@ -1,6 +1,10 @@
alias dcrun="docker compose "
alias dclogs="docker compose logs "
function dcshell () {
docker compose exec "$@" sh -c "[ -e /bin/bash ] && /bin/bash || [ -e /bin/zsh ] && /bin/zsh || /bin/sh"
}
function dcrestart () {
docker compose rm -sf "$@"
docker compose up -d "$@"

View File

@@ -17,3 +17,5 @@ function p () {
alias pl="p -l"
alias jqp="jq . | p -l json"
alias yqp="yq . | p -l yaml"
alias pjq="jq . | p -l json"
alias pyq="yq . | p -l yaml"