From 017ba59ab70abe9eb90177efe09f73b833a39c1a Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Thu, 23 Oct 2025 07:36:55 +0200 Subject: Improve compression utils modified: conf.d/05z.fish new file: functions/7za.fish new file: functions/uz.fish --- functions/7za.fish | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 functions/7za.fish (limited to 'functions/7za.fish') diff --git a/functions/7za.fish b/functions/7za.fish new file mode 100644 index 0000000..21b514a --- /dev/null +++ b/functions/7za.fish @@ -0,0 +1,15 @@ +function 7za --wraps 'bsdtar' --description "Emulate 7za with bsdtar" + +if test (count $argv) -lt 1 + echo "Missing argument." + return 1 +end + +if not command -sq bsdtar + echo "Can't fint bsdtar." + return 1 +end + +command bsdtar -xf "$argv[-1]" + +end -- cgit v1.3.1