better docker compose up
This commit is contained in:
parent
6fd9a92306
commit
be0d92ebc1
8
bashrc
8
bashrc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user