zsh: Add functions for vapoursynth and yuuno
This commit is contained in:
parent
27f79cae91
commit
ea253abbe9
|
@ -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
|
||||
}
|
||||
|
|
Reference in a new issue