From 2b3544b4a5b97001891cbe2d3558cdbc3b4d77d0 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 8 Apr 2026 13:21:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor(base):=20=E5=88=87=E6=8D=A2=E5=9B=9E?= =?UTF-8?q?=E6=94=B6=E7=AB=99=E5=B7=A5=E5=85=B7=20trash-cli=20=E2=86=92=20?= =?UTF-8?q?gomi-bin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit trash-cli 是 Python 写的老牌方案,启动开销大且 5 年未发布正式 release。gomi 是 Go 实现的现代替代品: - 完整兼容 freedesktop.org Trash 规范,与 yazi/GNOME/KDE 互通 - 提供交互式 TUI 浏览/恢复界面(gomi 无参数即进入) - 性能比 trash-cli 快约 10 倍 - 极活跃维护,AUR 提供预编译 gomi-bin 回收站数据无缝迁移:两者都使用 ~/.local/share/Trash/。 - pacman: -trash-cli - aur: +gomi-bin - .zshrc: alias rm: trash-put → gomi --- home/.zshrc | 2 +- modules/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home/.zshrc b/home/.zshrc index 709699a..a0fc992 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -46,7 +46,7 @@ alias lt="eza --tree --level=2 --icons" # 工具 alias cat="bat --paging=never" -alias rm="trash-put" +alias rm="gomi" alias lg="lazygit" alias vi="nvim" alias x="ouch decompress" # 万能解压(zip/tar/gz/bz2/xz/zst/7z/rar) diff --git a/modules/base.py b/modules/base.py index f5cc142..88e00be 100644 --- a/modules/base.py +++ b/modules/base.py @@ -57,7 +57,6 @@ class BaseModule(Module): "starship", "sudo", "tealdeer", - "trash-cli", "vim", "wget", "xh", @@ -70,4 +69,5 @@ class BaseModule(Module): def aur_packages(self) -> set[str]: return { "decman", + "gomi-bin", }