28 lines
		
	
	
		
			529 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			529 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
alias gst='git status'
 | 
						|
alias ga='git add'
 | 
						|
alias gc='git commit -m'
 | 
						|
alias gush='git push'
 | 
						|
alias gull='git pull'
 | 
						|
alias gb='git branch'
 | 
						|
 | 
						|
alias dc='docker-compose'
 | 
						|
alias dils='docker image ls | grep'
 | 
						|
alias dirm='docker image rm'
 | 
						|
 | 
						|
dcfs() {
 | 
						|
    YAML_FILE=$2
 | 
						|
 | 
						|
    if [[ -z "$YAML_FILE" ]]; then
 | 
						|
        YAML_FILE="docker-compose.yml"
 | 
						|
    fi
 | 
						|
 | 
						|
    if [[ -z "$1" ]]; then
 | 
						|
        echo "Service not set"
 | 
						|
        return
 | 
						|
    fi
 | 
						|
 | 
						|
    dc -f $YAML_FILE up -d --force-recreate $1
 | 
						|
    dc -f $YAML_FILE stop $1
 | 
						|
    dc -f $YAML_FILE rm --force $1
 | 
						|
}
 |