diff --git a/README.md b/README.md index e34973e..69b8a02 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,13 @@ docker-compose run --rm tor ``` +You can use the following shortcut function and place it to your `~/.bash_aliases` file + +``` +function docker_helper() { (cd ~/docker/$1; docker-compose run --rm "$@" & disown) } +function tor() { (docker_helper $FUNCNAME $@) } +``` + ### with Docker ```