Compare commits

...

2 Commits

Author SHA1 Message Date
2a5d218421 feat(apps): add "zip" 2024-03-17 00:20:42 +08:00
49f141e750 fix(aliases): fix webp function 2024-03-17 00:20:28 +08:00
2 changed files with 3 additions and 2 deletions

View File

@ -38,9 +38,9 @@ alias dclean="docker system prune -af"
# webp BEGIN
function to_webp() {
setopt NULL_GLOB
for type in jpg png; do
for type in jpg jpeg png; do
for F in *.$type; do
cwebp "$F" -o "`basename "$\{F%.$type}"`.webp"
cwebp "$F" -o "`basename "${F%.$type}"`.webp"
done
done
unsetopt NULL_GLOB

View File

@ -127,6 +127,7 @@ in
git
gnumake # Source for "make" command
htop # System monitor viewer
zip
unzip
killall # Kill processes by name instead of PID
ncdu # Disk space usage stats, per folder, nested