github tw93/Mole V0.3.0-linux
V0.3.0-linux Tidy

2 hours ago
Mole Logo

Mole CLI for Linux

Deep clean and optimize your Linux desktop.

Changelog

  1. mo purge for old build output: Finds node_modules, target, .venv, build and about 30 other build folders under your project folders, each only beside the project file that made it, such as node_modules next to package.json. Folders changed in the last 7 days and projects a running program works in start unselected, anything git tracks is never offered, and every folder is checked again right before it is removed. mo purge --paths sets which folders it scans, and --dry-run previews.
  2. mo history shows what Mole did: Recent runs grouped by command with how much each removed, moved to the Trash, skipped or failed, then the latest operations with their paths. --json exports it, --limit sets how many.
  3. GPU shader caches only on request: Mesa, NVIDIA, Steam and Lutris shader caches are no longer cleaned by default, since games rebuild them on the next launch and stutter while they do. mo clean --gpu-shaders includes them, as on Windows.
  4. --debug keeps a log: Any command run with --debug writes a session log and prints where it is, with your home folder shown as ~, ready to attach to an issue. mo --version now also says how Mole was installed.

更新日志

  1. 新增 mo purge 清理旧的构建产物:在项目文件夹里找 node_modules、target、.venv、build 等 30 多种构建目录,只认旁边有对应项目文件的,比如 package.json 旁边的 node_modules,最近 7 天改过的和正被程序使用的项目默认不勾选,git 跟踪的文件永远不会列出来,删除前每个文件夹都会再检查一遍,mo purge --paths 设置扫描哪些文件夹,--dry-run 先预览。
  2. 新增 mo history 查看 Mole 做过什么:按命令列出最近几次运行,每次删除、移到废纸篓、跳过和失败了多少,下面是最近的具体操作和路径,--json 可以导出,--limit 控制条数。
  3. GPU 着色器缓存改为按需清理:Mesa、NVIDIA、Steam 和 Lutris 的着色器缓存默认不再清理,因为游戏下次启动会重新生成,生成时会卡顿,需要时用 mo clean --gpu-shaders 一起清理,跟 Windows 版一样。
  4. --debug 会留下日志:任何命令加上 --debug 都会写一份会话日志并告诉你位置,家目录显示成 ~,可以直接附到 issue 里,mo --version 也会显示 Mole 是怎么装的。

Install

curl -fsSL https://raw.githubusercontent.com/tw93/Mole/linux/install.sh | bash

Mole installs into ~/.local/share/mole and links mo into ~/.local/bin, with no sudo. Already installed? Run mo update. SHA256SUMS.txt lists the checksum of each archive, and the installer checks it before installing.

Don't miss a new Mole release

NewReleases is sending notifications on new releases.