refactor(base): 用 ouch 替换 atool 与冗余解压器
atool 上次更新于 2016 年,且依赖外部 unzip/unrar/p7zip 二进制。 ouch 是纯 Rust 实现,所有常见格式(zip/7z/rar/tar/gz/bz2/xz/zst 等) 通过 Rust crates 原生支持,运行时零外部依赖。 - pacman: -atool -unrar -unzip +ouch - 保留 7zip:yazi 用作存档预览/提取的可选依赖 - .zshrc: alias x: aunpack → ouch decompress
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ alias cat="bat --paging=never"
|
|||||||
alias rm="trash-put"
|
alias rm="trash-put"
|
||||||
alias lg="lazygit"
|
alias lg="lazygit"
|
||||||
alias vi="nvim"
|
alias vi="nvim"
|
||||||
alias x="aunpack" # 万能解压(支持 tar/zip/7z/rar 等)
|
alias x="ouch decompress" # 万能解压(zip/tar/gz/bz2/xz/zst/7z/rar)
|
||||||
|
|
||||||
# 网络
|
# 网络
|
||||||
alias http="xh"
|
alias http="xh"
|
||||||
|
|||||||
+1
-3
@@ -34,7 +34,6 @@ class BaseModule(Module):
|
|||||||
def pacman_packages(self) -> set[str]:
|
def pacman_packages(self) -> set[str]:
|
||||||
return {
|
return {
|
||||||
"7zip",
|
"7zip",
|
||||||
"atool",
|
|
||||||
"atuin",
|
"atuin",
|
||||||
"base-devel",
|
"base-devel",
|
||||||
"base",
|
"base",
|
||||||
@@ -51,6 +50,7 @@ class BaseModule(Module):
|
|||||||
"git",
|
"git",
|
||||||
"jq",
|
"jq",
|
||||||
"micro",
|
"micro",
|
||||||
|
"ouch",
|
||||||
"procs",
|
"procs",
|
||||||
"ripgrep",
|
"ripgrep",
|
||||||
"sd",
|
"sd",
|
||||||
@@ -58,8 +58,6 @@ class BaseModule(Module):
|
|||||||
"sudo",
|
"sudo",
|
||||||
"tealdeer",
|
"tealdeer",
|
||||||
"trash-cli",
|
"trash-cli",
|
||||||
"unrar",
|
|
||||||
"unzip",
|
|
||||||
"vim",
|
"vim",
|
||||||
"wget",
|
"wget",
|
||||||
"xh",
|
"xh",
|
||||||
|
|||||||
Reference in New Issue
Block a user