From 895b77ac224ff82468cdecb64fe2dc9bf69a8eee Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 10 Sep 2019 12:15:48 +0000 Subject: [PATCH] Add gimp docker alias (debian gimp is broken again) --- home/.zshrc.docker | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/home/.zshrc.docker b/home/.zshrc.docker index 73a5862..5134b1e 100644 --- a/home/.zshrc.docker +++ b/home/.zshrc.docker @@ -4,6 +4,22 @@ function speedtest() { docker run --rm tianon/speedtest } +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939876 +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939768 +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939754 +function docker-gimp() { + docker run --rm -it \ + -e DISPLAY \ + -e HOME=/home/gimp \ + -u $(id -u) \ + -v /tmp/.X11-unix:/tmp/.X11-unix \ + -v $PWD:/home/gimp/data/ \ + -v /tmp/:/home/gimp/tmp/ \ + -v ~/.local/share/gegl-0.4:/home/gimp/.local/share/gegl-0.4 \ + -v ~/.config/GIMP/:/home/gimp/.config/GIMP/ \ + jess/gimp $@ +} + function vobsub2srt() { docker run \ --rm \