zsh: Add functions for vapoursynth and yuuno

This commit is contained in:
Simon Bruder 2020-01-18 12:53:49 +00:00
parent 27f79cae91
commit ea253abbe9
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -80,3 +80,35 @@ function dive() {
-v /var/run/docker.sock:/var/run/docker.sock \
wagoodman/dive
}
function vapoursynth() {
docker run \
--rm \
-it \
-e DISPLAY \
-u $(id -u) \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v "$HOME/.config/:/home/vapoursynth/.config/" \
-v "$PWD:/data/" \
-w /data/ \
--group-add $(getent group video|cut -d: -f3) \
--group-add $(getent group render|cut -d: -f3) \
--device /dev/dri \
r.sbruder.de/vapoursynth \
$@
}
function yuuno() {
docker run \
--rm \
-it \
-u $(id -u) \
-v "$PWD:/data/" \
-w /data/ \
-p 8087:8087 \
--group-add $(getent group video|cut -d: -f3) \
--group-add $(getent group render|cut -d: -f3) \
--device /dev/dri \
r.sbruder.de/vapoursynth \
jupyter notebook --ip 0.0.0.0 --port 8087
}