diff options
| author | Deposite Pirate | 2025-10-23 07:36:55 +0200 |
|---|---|---|
| committer | Deposite Pirate | 2025-10-23 07:36:55 +0200 |
| commit | 017ba59ab70abe9eb90177efe09f73b833a39c1a (patch) | |
| tree | 3766b3c46249e85486d1af35e53938b0a58b6dd9 /functions/7za.fish | |
| parent | 4258e7a78d96c869e64f780d1330d3d1c0cc431b (diff) | |
Improve compression utils
modified: conf.d/05z.fish
new file: functions/7za.fish
new file: functions/uz.fish
Diffstat (limited to 'functions/7za.fish')
| -rw-r--r-- | functions/7za.fish | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
