better docker compose up

This commit is contained in:
Shihaam Abdul Rahman 2023-11-12 22:15:59 +05:00
parent 6fd9a92306
commit be0d92ebc1
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

8
bashrc
View File

@ -46,7 +46,13 @@ alias ks=ls
alias dc=cd
#########################
docker(){
if [[ $1 == "compose" && $2 == "up" && $# -eq 2 ]]; then
docker compose up -d && docker compose logs -f
else
command docker "$@"
fi
}
##################### Some cool funcations hehe ###############################
# do math in shell