Add waifu2x zsh function
This commit is contained in:
parent
3a6197d9be
commit
984717a833
|
@ -34,3 +34,19 @@ function unrar () {
|
|||
r.sbruder.de/unrar \
|
||||
$@
|
||||
}
|
||||
|
||||
function waifu2x() {
|
||||
docker run \
|
||||
--rm \
|
||||
-t \
|
||||
-v "$PWD:/data" \
|
||||
-w /data \
|
||||
-v "$HOME/.waifu2x:/home/waifu2x/.waifu2x" \
|
||||
-e HOME=/home/waifu2x \
|
||||
-u $(id -u) \
|
||||
--group-add $(getent group video|cut -d: -f3) \
|
||||
--group-add $(getent group render|cut -d: -f3) \
|
||||
--device /dev/dri \
|
||||
r.sbruder.de/waifu2x-converter-cpp \
|
||||
$@
|
||||
}
|
||||
|
|
Reference in a new issue