[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"pack-detail-modern-cli-toolbelt-zh":3,"seo:pack:modern-cli-toolbelt:zh":98},{"code":4,"message":5,"data":6},200,"操作成功",{"pack":7},{"slug":8,"icon":9,"tone":10,"status":11,"status_label":12,"title":13,"description":14,"items":15,"install_cmd":97},"modern-cli-toolbelt","⚡","#0F172A","stable","稳定","现代 CLI 工具腰带","fzf \u002F ripgrep \u002F lazygit \u002F eza \u002F Yazi \u002F btop \u002F delta \u002F hyperfine \u002F glow \u002F ShellGPT — Rust + AI 重写的 Unix 工具链。",[16,28,36,43,50,57,64,71,78,88],{"id":17,"uuid":18,"slug":19,"title":20,"description":21,"author_name":22,"view_count":23,"vote_count":24,"lang_type":25,"type":26,"type_label":27},1031,"85b6bab1-35bd-11f1-9bc6-00163e2b0d79","fzf-blazing-fast-command-line-fuzzy-finder-85b6bab1","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.","AI Open Source",288,0,"en","skill","Skill",{"id":29,"uuid":30,"slug":31,"title":32,"description":33,"author_name":34,"view_count":35,"vote_count":24,"lang_type":25,"type":26,"type_label":27},1032,"85b6bce8-35bd-11f1-9bc6-00163e2b0d79","ripgrep-rg-recursively-search-directories-regex-85b6bce8","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.","Script Depot",270,{"id":37,"uuid":38,"slug":39,"title":40,"description":41,"author_name":34,"view_count":42,"vote_count":24,"lang_type":25,"type":26,"type_label":27},1036,"6ed075de-35cb-11f1-9bc6-00163e2b0d79","lazygit-simple-terminal-ui-git-commands-6ed075de","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.",299,{"id":44,"uuid":45,"slug":46,"title":47,"description":48,"author_name":34,"view_count":49,"vote_count":24,"lang_type":25,"type":26,"type_label":27},1044,"d3b64cc3-35cb-11f1-9bc6-00163e2b0d79","eza-modern-colorful-replacement-ls-d3b64cc3","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.",327,{"id":51,"uuid":52,"slug":53,"title":54,"description":55,"author_name":22,"view_count":56,"vote_count":24,"lang_type":25,"type":26,"type_label":27},1047,"224cd538-35d4-11f1-9bc6-00163e2b0d79","yazi-blazing-fast-terminal-file-manager-rust-224cd538","Yazi — Blazing Fast Terminal File Manager in Rust","Yazi is a blazing fast terminal file manager written in Rust, based on async I\u002FO. Preview images and videos in terminal, fuzzy search, batch operations, plugin system, and seamless integration with tools like fzf, zoxide, and rg.",363,{"id":58,"uuid":59,"slug":60,"title":61,"description":62,"author_name":34,"view_count":63,"vote_count":24,"lang_type":25,"type":26,"type_label":27},1048,"224cd6fd-35d4-11f1-9bc6-00163e2b0d79","btop-beautiful-resource-monitor-linux-macos-windows-224cd6fd","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.",381,{"id":65,"uuid":66,"slug":67,"title":68,"description":69,"author_name":22,"view_count":70,"vote_count":24,"lang_type":25,"type":26,"type_label":27},1049,"224cd8c0-35d4-11f1-9bc6-00163e2b0d79","delta-syntax-highlighting-pager-git-diff-grep-224cd8c0","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.",326,{"id":72,"uuid":73,"slug":74,"title":75,"description":76,"author_name":34,"view_count":77,"vote_count":24,"lang_type":25,"type":26,"type_label":27},1124,"ce6e174e-3651-11f1-9bc6-00163e2b0d79","hyperfine-command-line-benchmarking-tool-ce6e174e","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.",315,{"id":79,"uuid":80,"slug":81,"title":82,"description":83,"author_name":84,"view_count":85,"vote_count":24,"lang_type":25,"type":86,"type_label":87},1125,"ce6e1914-3651-11f1-9bc6-00163e2b0d79","glow-render-markdown-cli-style-ce6e1914","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.","Charm",426,"config","Config",{"id":89,"uuid":90,"slug":91,"title":92,"description":93,"author_name":34,"view_count":94,"vote_count":24,"lang_type":25,"type":95,"type_label":96},304,"b48a2103-8192-468f-8a8e-1d69d74c64b8","shellgpt-ai-assistant-your-terminal-b48a2103","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.",280,"script","Script","tokrepo install pack\u002Fmodern-cli-toolbelt",{"pageType":99,"pageKey":8,"locale":100,"title":101,"metaDescription":102,"h1":13,"tldr":103,"bodyMarkdown":104,"faq":105,"schema":121,"internalLinks":131,"citations":144,"wordCount":157,"generatedAt":158},"pack","zh","现代 CLI 工具腰带：10 个 Rust + AI 重写 Unix 工具链","fzf \u002F ripgrep \u002F lazygit \u002F eza \u002F Yazi \u002F btop \u002F delta \u002F hyperfine \u002F glow \u002F ShellGPT — Rust + AI 重写的 Unix 工具链。TokRepo CLI 一条命令装齐 10 个。","十个 Rust 和 AI 重写的 Unix 日用工具 —— fzf \u002F ripgrep \u002F lazygit \u002F eza \u002F Yazi \u002F btop \u002F delta \u002F hyperfine \u002F glow \u002F ShellGPT。一条命令装齐。","## 这个 pack 装了什么\n\nUnix 工具链（grep \u002F find \u002F ls \u002F top \u002F diff \u002F cat \u002F time）是 TB 级硬盘还很稀奇时代设计的。现代替代品 —— 多数 Rust 写的 —— 通常快 5–20 倍，更聪明地尊重 `.gitignore`，默认值也更合理。这个 pack 收齐了 2026 年几乎每个资深工程师 `~\u002F.zshrc` 里都会出现的 10 个。\n\n| 工具 | 替代 | 为什么装 |\n|---|---|---|\n| **fzf** | 反向搜索 \u002F 文件选择器 | 任意行流的模糊搜索 —— 把 history \u002F git branch \u002F kill 管道进去 |\n| **ripgrep (rg)** | grep | 快 5–20 倍，尊重 `.gitignore`，默认递归 |\n| **lazygit** | git CLI 仪式感 | 完整 git 流程 TUI，3 键完成 commit\u002Fpush\u002Frebase |\n| **eza** | ls | 颜色、图标、tree 模式、git 状态列 |\n| **Yazi** | 文件管理器 | 异步 I\u002FO、终端图片预览、插件体系 |\n| **btop** | top \u002F htop | GPU + 温度 + 每核心，UI 最干净 |\n| **delta** | git diff | 语法高亮、并排、行号 |\n| **hyperfine** | time \u002F timeit | 带预热和 CSV 导出的统计基准 |\n| **glow** | markdown 的 cat | 终端里渲染 markdown —— 不离 shell 读 README |\n| **ShellGPT (sgpt)** | Stack Overflow | 自然语言 → shell 命令，安全模式有确认 |\n\n## 为什么是 \"Rust + AI 重写\"\n\n过去五年有两波重写 Unix CLI。Rust 那波（ripgrep \u002F fzf 用 Go 但同精神 \u002F eza \u002F bat \u002F fd）带来速度和现代默认值。AI 那波（ShellGPT \u002F Warp \u002F Claude Code 在终端里）在上面加了自然语言层。这个 pack 挑出的是幸存者 —— 在生产环境里新生代明显取代了老的，不是 HN 一时风光后消失的玩具。\n\n## 一条命令装齐\n\n```bash\ntokrepo install pack\u002Fmodern-cli-toolbelt\n```\n\nTokRepo CLI 会按你的 OS 调用合适的包管理器（macOS 用 brew \u002F Linux 用 apt\u002Fdnf\u002Fpacman \u002F Windows 用 winget），并写 shell 别名 —— `alias grep=rg`、`alias ls='eza --git'` —— 让肌肉记忆继续生效。\n\n## 高杠杆 shell 别名\n\n```bash\n# 加到 ~\u002F.zshrc 或 ~\u002F.bashrc\nalias ls='eza --icons --git'\nalias ll='eza -lha --icons --git'\nalias grep='rg'\nalias cat='bat --paging=never'\nalias top='btop'\nalias df='duf'\n\n# fzf 驱动的快捷\nalias gco='git checkout $(git branch | fzf | tr -d \"[:space:]\")'\nalias gkill='kill -9 $(ps -ef | fzf | awk \"{print \\$2}\")'\n```\n\n## 这个 pack 不够用怎么办\n\n如果在编排数据流水线 → 看 **API 测试栈** 里的 `k6` 和 `Hurl`。如果生活在 tmux\u002Fzellij → 看 Claude Code skill 生态里的 multiplexer skill。",[106,109,112,115,118],{"q":107,"a":108},"这些工具会跟原版 Unix 工具冲突吗？","不会。没有一个会移除或修改原版（grep \u002F ls \u002F top 等）。TokRepo 安装把它们放在自己的名字下（rg \u002F eza \u002F btop），可选地写 opt-in 别名。如果你把 ls 别名到 eza 然后某个脚本因为 eza 输出格式不同挂了，把那个别名删掉就好 —— 原版 ls 还在。",{"q":110,"a":111},"我已经有 GNU coreutils 了，为啥还要换？","三个原因：(1) 速度 —— ripgrep 在大型 monorepo 上常常比 grep -r 快 10 倍。(2) 默认值 —— 现代工具尊重 .gitignore、用颜色、默认递归。(3) 组合性 —— fzf 把 *任意* 行流变成交互式选择器。一个工作日累计下来，体验差距相当显著。",{"q":113,"a":114},"ShellGPT 跟在终端里跑 Claude Code 比怎样？","ShellGPT 是单轮的：你问，它打一条命令。Claude Code 是完整 agent，能读文件、跑多步计划、改代码。ShellGPT 用于一次性 shell 咒语查询。Claude Code 用在任务需要读或改多个文件时。",{"q":116,"a":117},"这 10 个全是 Rust 写的吗？","多数是。具体语言：fzf（Go）\u002F ripgrep（Rust）\u002F lazygit（Go）\u002F eza（Rust）\u002F Yazi（Rust）\u002F btop（C++）\u002F delta（Rust）\u002F hyperfine（Rust）\u002F glow（Go）\u002F ShellGPT（Python）。「Rust + AI 重写」是讲精神 —— 速度、合理默认、现代 UX —— 不严格指语言。",{"q":119,"a":120},"这些工具在 Windows 上能用吗？","多数可以 —— 都发 Windows 二进制和 winget 包。例外是依赖 POSIX TTY 语义的（lazygit 和 Yazi 能跑，但在 WSL2 或真 Linux\u002FMac 终端体验更顺）。",{"@context":122,"@type":123,"name":124,"description":125,"numberOfItems":126,"publisher":127},"https:\u002F\u002Fschema.org","CollectionPage","Modern CLI Toolbelt","fzf, ripgrep, lazygit, eza, Yazi, btop, delta, hyperfine, glow, ShellGPT.",10,{"@type":128,"name":129,"url":130},"Organization","TokRepo","https:\u002F\u002Ftokrepo.com",[132,136,140],{"url":133,"anchor":134,"reason":135},"\u002Fzh\u002Fpacks\u002Fapi-testing-stack","API 测试栈","命令行测试工具",{"url":137,"anchor":138,"reason":139},"\u002Fzh\u002Ftools\u002Fclaude-code","Claude Code","终端主力 coding agent",{"url":141,"anchor":142,"reason":143},"\u002Fzh\u002Ffeatured","精选工作流","发现更多",[145,149,153],{"claim":146,"source_name":147,"source_url":148},"ripgrep is faster than grep on most workloads","BurntSushi\u002Fripgrep benchmarks","https:\u002F\u002Fgithub.com\u002FBurntSushi\u002Fripgrep",{"claim":150,"source_name":151,"source_url":152},"fzf, lazygit, eza canonical sources","GitHub upstream repos","https:\u002F\u002Fgithub.com\u002Fjunegunn\u002Ffzf",{"claim":154,"source_name":155,"source_url":156},"Yazi terminal file manager","sxyazi\u002Fyazi","https:\u002F\u002Fgithub.com\u002Fsxyazi\u002Fyazi",345,"2026-05-02T14:00:00Z"]