From 050fe786a9867847b8bc72386d9eb7f95c7a2e4f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 8 Nov 2026 16:08:35 +0200 Subject: feat(bash): Add png-reduce function I've used it for many months, redefining it every time... --- bash/.bashrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bash') diff --git a/bash/.bashrc b/bash/.bashrc index d8e7ac0..0bae8a1 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -514,6 +514,12 @@ EOF bgr "nemo ./" } + png-reduce () { + pngcrush -reduce -brute "$1" temp.png || return "$?" + rm "$1" + mv temp.png "$1" + } + alias q="exit" alias x="exit" -- cgit v1.3.1-26-gb76a