TOKREPO · 主题包
本周新建

现代 CLI 工具腰带

fzf / ripgrep / lazygit / eza / Yazi / btop / delta / hyperfine / glow / ShellGPT — Rust + AI 重写的 Unix 工具链。

10 个资产

这个 pack 装了什么

Unix 工具链(grep / find / ls / top / diff / cat / time)是 TB 级硬盘还很稀奇时代设计的。现代替代品 —— 多数 Rust 写的 —— 通常快 5–20 倍,更聪明地尊重 .gitignore,默认值也更合理。这个 pack 收齐了 2026 年几乎每个资深工程师 ~/.zshrc 里都会出现的 10 个。

工具 替代 为什么装
fzf 反向搜索 / 文件选择器 任意行流的模糊搜索 —— 把 history / git branch / kill 管道进去
ripgrep (rg) grep 快 5–20 倍,尊重 .gitignore,默认递归
lazygit git CLI 仪式感 完整 git 流程 TUI,3 键完成 commit/push/rebase
eza ls 颜色、图标、tree 模式、git 状态列
Yazi 文件管理器 异步 I/O、终端图片预览、插件体系
btop top / htop GPU + 温度 + 每核心,UI 最干净
delta git diff 语法高亮、并排、行号
hyperfine time / timeit 带预热和 CSV 导出的统计基准
glow markdown 的 cat 终端里渲染 markdown —— 不离 shell 读 README
ShellGPT (sgpt) Stack Overflow 自然语言 → shell 命令,安全模式有确认

为什么是 "Rust + AI 重写"

过去五年有两波重写 Unix CLI。Rust 那波(ripgrep / fzf 用 Go 但同精神 / eza / bat / fd)带来速度和现代默认值。AI 那波(ShellGPT / Warp / Claude Code 在终端里)在上面加了自然语言层。这个 pack 挑出的是幸存者 —— 在生产环境里新生代明显取代了老的,不是 HN 一时风光后消失的玩具。

一条命令装齐

tokrepo install pack/modern-cli-toolbelt

TokRepo CLI 会按你的 OS 调用合适的包管理器(macOS 用 brew / Linux 用 apt/dnf/pacman / Windows 用 winget),并写 shell 别名 —— alias grep=rgalias ls='eza --git' —— 让肌肉记忆继续生效。

高杠杆 shell 别名

# 加到 ~/.zshrc 或 ~/.bashrc
alias ls='eza --icons --git'
alias ll='eza -lha --icons --git'
alias grep='rg'
alias cat='bat --paging=never'
alias top='btop'
alias df='duf'

# fzf 驱动的快捷
alias gco='git checkout $(git branch | fzf | tr -d "[:space:]")'
alias gkill='kill -9 $(ps -ef | fzf | awk "{print \$2}")'

这个 pack 不够用怎么办

如果在编排数据流水线 → 看 API 测试栈 里的 k6Hurl。如果生活在 tmux/zellij → 看 Claude Code skill 生态里的 multiplexer skill。

安装 · 一行命令
$ tokrepo install pack/modern-cli-toolbelt
丢给 agent,或粘到终端
包内含什么

10 个资产打包就绪

Config#01
fzf — Blazing Fast Command-Line Fuzzy Finder

fzf is a general-purpose command-line fuzzy finder written in Go. Blazing fast, portable, and composable with any list-producing command. Interactive picker for files, commands, history, git branches, processes, and more.

by AI Open Source·113 views
$ tokrepo install fzf-blazing-fast-command-line-fuzzy-finder-85b6bab1
Script#02
ripgrep (rg) — Recursively Search Directories with Regex

ripgrep recursively searches directories for a regex pattern while respecting your gitignore. Written in Rust, ripgrep is the fastest search tool on the market — used inside VS Code, GitHub, and many other dev tools.

by Script Depot·99 views
$ tokrepo install ripgrep-rg-recursively-search-directories-regex-85b6bce8
Script#03
Lazygit — Simple Terminal UI for Git Commands

Lazygit is a simple terminal UI for git commands. Stage files, commit, push, rebase, cherry-pick, squash, and browse history without memorizing 30 git commands. Written in Go and designed for speed with vim-style keybindings.

by Script Depot·98 views
$ tokrepo install lazygit-simple-terminal-ui-git-commands-6ed075de
Script#04
eza — A Modern Colorful Replacement for ls

eza is a modern replacement for the venerable ls command. Adds colors, Git status, file type icons, tree view, and long-format improvements. Actively maintained fork of the archived exa project.

by Script Depot·141 views
$ tokrepo install eza-modern-colorful-replacement-ls-d3b64cc3
Config#05
Yazi — Blazing Fast Terminal File Manager in Rust

Yazi is a blazing fast terminal file manager written in Rust, based on async I/O. Preview images and videos in terminal, fuzzy search, batch operations, plugin system, and seamless integration with tools like fzf, zoxide, and rg.

by AI Open Source·119 views
$ tokrepo install yazi-blazing-fast-terminal-file-manager-rust-224cd538
Script#06
btop — Beautiful Resource Monitor for Linux, macOS, Windows

btop is a resource monitor that shows usage and stats for CPU, memory, disks, network, and processes. Beautiful TUI with mouse support, gradients, themes, and low memory footprint. The modern successor to htop and bashtop.

by Script Depot·138 views
$ tokrepo install btop-beautiful-resource-monitor-linux-macos-windows-224cd6fd
Config#07
delta — Syntax-Highlighting Pager for Git Diff and Grep

delta is a syntax-highlighting pager for git, diff, grep, and rg output. Beautiful side-by-side diffs with language-aware highlighting, line numbers, and theming. Drop-in replacement for the default git pager.

by AI Open Source·123 views
$ tokrepo install delta-syntax-highlighting-pager-git-diff-grep-224cd8c0
Script#08
Hyperfine — Command-Line Benchmarking Tool

Hyperfine is a command-line benchmarking tool written in Rust. Run benchmarks with statistical analysis: multiple runs, warmup, outlier detection, comparison across commands, and export results. By the author of bat and fd.

by Script Depot·137 views
$ tokrepo install hyperfine-command-line-benchmarking-tool-ce6e174e
Config#09
Glow — Render Markdown on the CLI with Style

Glow is a terminal-based Markdown reader from Charmbracelet. Renders Markdown beautifully in the terminal with syntax highlighting, word wrapping, and theming. Also features a stash for bookmarking Markdown files.

by Charm·161 views
$ tokrepo install glow-render-markdown-cli-style-ce6e1914
Script#10
ShellGPT — AI Assistant in Your Terminal

ShellGPT generates shell commands, code, and docs from natural language in your terminal. 11.9K+ stars. Chat, REPL, local models. MIT.

by Script Depot·127 views
$ tokrepo install shellgpt-ai-assistant-your-terminal-b48a2103
FAQ

常见问题

这些工具会跟原版 Unix 工具冲突吗?

不会。没有一个会移除或修改原版(grep / ls / top 等)。TokRepo 安装把它们放在自己的名字下(rg / eza / btop),可选地写 opt-in 别名。如果你把 ls 别名到 eza 然后某个脚本因为 eza 输出格式不同挂了,把那个别名删掉就好 —— 原版 ls 还在。

我已经有 GNU coreutils 了,为啥还要换?

三个原因:(1) 速度 —— ripgrep 在大型 monorepo 上常常比 grep -r 快 10 倍。(2) 默认值 —— 现代工具尊重 .gitignore、用颜色、默认递归。(3) 组合性 —— fzf 把 任意 行流变成交互式选择器。一个工作日累计下来,体验差距相当显著。

ShellGPT 跟在终端里跑 Claude Code 比怎样?

ShellGPT 是单轮的:你问,它打一条命令。Claude Code 是完整 agent,能读文件、跑多步计划、改代码。ShellGPT 用于一次性 shell 咒语查询。Claude Code 用在任务需要读或改多个文件时。

这 10 个全是 Rust 写的吗?

多数是。具体语言:fzf(Go)/ ripgrep(Rust)/ lazygit(Go)/ eza(Rust)/ Yazi(Rust)/ btop(C++)/ delta(Rust)/ hyperfine(Rust)/ glow(Go)/ ShellGPT(Python)。「Rust + AI 重写」是讲精神 —— 速度、合理默认、现代 UX —— 不严格指语言。

这些工具在 Windows 上能用吗?

多数可以 —— 都发 Windows 二进制和 winget 包。例外是依赖 POSIX TTY 语义的(lazygit 和 Yazi 能跑,但在 WSL2 或真 Linux/Mac 终端体验更顺)。

更多主题包

12 个主题包 · 80+ 精选资产

回首页浏览全部精选合集

返回主题包总览