Added Updates

This commit is contained in:
Hannes
2025-11-16 17:26:44 +01:00
parent 4c69b186f0
commit b16d05da76
21 changed files with 467 additions and 34 deletions

16
functions/pack.fish Executable file
View File

@@ -0,0 +1,16 @@
function pack
if test (count $argv) -lt 2
echo "Usage: pack <archive-name> <file-or-dir> [more files...]"
return 1
end
set archive $argv[1]
set targets $argv[2..-1]
# Ensure .tar.xz extension
if not string match -r '\.tar\.xz$' -- $archive
set archive "$archive.tar.xz"
end
tar -cJvf $archive $targets
end