diff --git a/roles/shell-dotfiles/files/functions b/roles/shell-dotfiles/files/functions index 21f9462..f022a77 100644 --- a/roles/shell-dotfiles/files/functions +++ b/roles/shell-dotfiles/files/functions @@ -108,15 +108,6 @@ function git_updated() { done } -# Docker presentaciones -function reveal () { - function async () - { - sleep 3 && xdg-open http:localhost:8000 - } - async &! - docker run -ti --name revealjs --rm -v `pwd`:/revealjs/files/ -p 8000:8000 revealjs -} # Autocompletados ## kubectl @@ -311,3 +302,19 @@ function kube_get_deploy_pods(){ fi ku get pods | grep "$deploy" | awk '{print $1}' } + +# Docker +## Reveal +function reveal () { + function async () + { + sleep 3 && xdg-open http:localhost:8000 + } + async &! + docker run -ti --name revealjs --rm -v `pwd`:/revealjs/files/ -p 8000:8000 revealjs +} + +## Tox +function docker-tox () { + docker run -ti -v `pwd`:/tox registry.daemons.it/tox:latest tox "$@" +}