better docker compose up

This commit is contained in:
2023-11-12 22:15:59 +05:00
parent 6fd9a92306
commit be0d92ebc1

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