Skip to content

Instantly share code, notes, and snippets.

@andyshinn
Created October 21, 2015 03:24
Show Gist options
  • Select an option

  • Save andyshinn/49f7dca604cbb998055c to your computer and use it in GitHub Desktop.

Select an option

Save andyshinn/49f7dca604cbb998055c to your computer and use it in GitHub Desktop.
docker() { if [[ "$@" == "bankruptcy" ]]; then command docker rm -f $(docker ps -a -q); docker rmi -f $(docker images -a -q); else command docker "$@"; fi }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment