From 77fd5468008e8de4b8501c74a53ae20459f63c33 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Fri, 10 Dec 2021 16:00:27 +0100 Subject: [PATCH] bin/b: accept all kinds of archives (e.g. jar) --- .local/bin/scripts/b | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.local/bin/scripts/b b/.local/bin/scripts/b index ef5a9cb..92b2364 100755 --- a/.local/bin/scripts/b +++ b/.local/bin/scripts/b @@ -47,7 +47,8 @@ for arg; do ;; (*\ video/*) suffix=_thumbs.jpg - mtn -i -t -W -D6 -b 0,6 -c $grid -w $(expr $(tput cols) '*' 20) -O $prefix -o $suffix "$arg" 2>/dev/null + mtn -i -t -W -D6 -b 0,6 -c $grid -w $(expr $(tput cols) '*' 20) \ + -O $prefix -o $suffix "$arg" 2>/dev/null timg -W "$prefix/$(basename "${arg%.*}")$suffix" ;; (*\ image/*) @@ -68,7 +69,7 @@ for arg; do } fi ;; - (*:\ *compress*|*tar\ archive) + (*:\ *compress*|*\ archive*) if test $# = 1 then nvim "$arg" else case "$arg" in (*.part);; (*)