You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
529 B

  1. alias gst='git status'
  2. alias ga='git add'
  3. alias gc='git commit -m'
  4. alias gush='git push'
  5. alias gull='git pull'
  6. alias gb='git branch'
  7. alias dc='docker-compose'
  8. alias dils='docker image ls | grep'
  9. alias dirm='docker image rm'
  10. dcfs() {
  11. YAML_FILE=$2
  12. if [[ -z "$YAML_FILE" ]]; then
  13. YAML_FILE="docker-compose.yml"
  14. fi
  15. if [[ -z "$1" ]]; then
  16. echo "Service not set"
  17. return
  18. fi
  19. dc -f $YAML_FILE up -d --force-recreate $1
  20. dc -f $YAML_FILE stop $1
  21. dc -f $YAML_FILE rm --force $1
  22. }