zsh: Add netlify docker function

This commit is contained in:
Simon Bruder 2020-08-04 00:26:43 +02:00
parent a8fc2c06ff
commit c6e10fe02f
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -138,3 +138,15 @@ function gcloud {
google/cloud-sdk \ google/cloud-sdk \
gcloud "$@" gcloud "$@"
} }
function netlify() {
docker run \
--rm \
-it \
--init \
-v $HOME/.netlify:/home/node/.netlify \
-v $PWD:/data/ \
-w /data/ \
r.sbruder.de/netlify-cli \
"$@"
}