aboutsummaryrefslogtreecommitdiff
path: root/functions/7za.fish
diff options
context:
space:
mode:
Diffstat (limited to 'functions/7za.fish')
-rw-r--r--functions/7za.fish15
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