From c6e10fe02f17516e57006822a6f60607d59684b1 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 4 Aug 2020 00:26:43 +0200 Subject: [PATCH] zsh: Add netlify docker function --- home/.zshrc.docker | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/home/.zshrc.docker b/home/.zshrc.docker index 5b666d2..7917121 100644 --- a/home/.zshrc.docker +++ b/home/.zshrc.docker @@ -138,3 +138,15 @@ function gcloud { google/cloud-sdk \ gcloud "$@" } + +function netlify() { + docker run \ + --rm \ + -it \ + --init \ + -v $HOME/.netlify:/home/node/.netlify \ + -v $PWD:/data/ \ + -w /data/ \ + r.sbruder.de/netlify-cli \ + "$@" +}