add fish config

This commit is contained in:
FlintyLemming
2025-12-19 16:30:32 +08:00
parent 811107029b
commit 4a554cf0c6
2 changed files with 4 additions and 4 deletions

4
bin/zp
View File

@@ -13,12 +13,12 @@ if test $arg_count -eq 1
set -l name (string trim -r -c / $argv[1])
set -l target "$name.zip"
echo "🚀 正在多线程压缩单项目: $target"
7z a -tzip -mmt=on -mx=5 "$target" "$argv[1]"
7z a -sni -snh -tzip -mmt=on -mx=5 "$target" "$argv[1]"
else
# 逻辑 B多个参数生成 package_20251219_1540.zip
set -l timestamp (date "+%Y%m%d_%H%M%S")
set -l target "package_$timestamp.zip"
echo "🚀 正在将 $arg_count 个项目打包至: $target"
# 直接传入 $argv7z 会自动处理多个路径
7z a -tzip -mmt=on -mx=5 "$target" $argv
7z a -sni -snh -tzip -mmt=on -mx=5 "$target" $argv
end