better docker compose up
This commit is contained in:
		
							
								
								
									
										8
									
								
								bashrc
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								bashrc
									
									
									
									
									
								
							@@ -46,7 +46,13 @@ alias ks=ls
 | 
				
			|||||||
alias dc=cd
 | 
					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 ###############################
 | 
					##################### Some cool funcations hehe ###############################
 | 
				
			||||||
# do math in shell
 | 
					# do math in shell
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user