我的 Dev 工具列表 2025
Source: Dev.to
TL;DR
macOS
# AeroSpace window manager
brew install --cask nikitabobko/tap/aerospace
# Core utilities
brew install atuin chezmoi gh fzf eza bat ripgrep starship git-delta fd tmux stern mise jj hl
AeroSpace
适用于 macOS 的窗口管理器,可通过键盘快捷键平铺窗口。
Atuin
现代化的 Shell 历史记录工具,支持跨设备同步。
brew install atuin
echo 'eval "$(atuin init zsh)"' >> ~/.zshrc
Atuin 还提供桌面应用(可选)。
Chezmoi
在多台机器之间同步点文件和配置。
brew install chezmoi
chezmoi init
# Example: add a file to be managed
chezmoi add ~/.bashrc # or ~/.zshrc, etc.
GitHub CLI
GitHub 的命令行界面。
brew install gh
# Example: create a new repository
gh repo create cool-repo --public --source=. --remote=origin
fzf
终端模糊查找工具。
brew install fzf
# Use Ctrl‑r to search command history
eza
带颜色和图标的现代 ls 替代品。
brew install eza
bat
带语法高亮和 Git 集成的 cat 克隆版。
brew install bat
# Alias `cat` to `bat` (optional)
atuin dotfiles alias add cat bat
ripgrep
快速的 grep 替代品。
brew install ripgrep
starship
跨 Shell 的提示符,视觉效果丰富。
brew install starship
git‑delta
带语法高亮和并排差异的 Git 分页器。
brew install git-delta
添加到 ~/.gitconfig:
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
# dark = true
# light = true
[merge]
conflictStyle = zdiff3
fd
find 的简洁、快速替代品。
brew install fd
文档示例:
cd /etc
fd '^x.*rc$'
#=> X11/xinit/xinitrc
#=> X11/xinit/xserverrc
tmux
终端复用器。
brew install tmux
# Start a session in a directory
tmux new-session -d -s my-session -c ~/some-dir
# Attach to the session
tmux attach -t my-session
stern
Kubernetes 多 Pod 日志实时追踪。
brew install stern
mise
CLI 工具的版本管理器(类似 nvm、pyenv 等)。
brew install mise
# Example: install Python 3.14 globally
mise use --global python@3.14
jj
与 Git 并行工作的版本控制系统。
brew install jj
# Initialize in an existing repo
jj git init --colocate
hl
高性能日志查看器。
brew install hl
hl /path/to/huge/logfile.log
# Or view multiple logs
hl /path/to/logs/*.log
lazyvim
精选的 Neovim 配置。
请参阅我详细的文章 “A Gaggle of Agents”(11 月 30 日)了解完整演练。
Linux (APT)
sudo apt install -y \
fzf \
fd-find \
ripgrep \
bat \
tmux
eza(现代 ls)
sudo apt install -y gpg
sudo mkdir -p /etc/apt/keyrings
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc \
| sudo gpg --dearmor -o /etc/apt/keyrings/gierens.gpg
echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" \
| sudo tee /etc/apt/sources.list.d/gierens.list
sudo apt update && sudo apt install -y eza
git‑delta(git 分页器)
DELTA_VERSION="0.18.2"
wget https://github.com/dandavison/delta/releases/download/${DELTA_VERSION}/git-delta_${DELTA_VERSION}_amd64.deb
sudo dpkg -i git-delta_${DELTA_VERSION}_amd64.deb
rm git-delta_${DELTA_VERSION}_amd64.deb
mise(版本管理器)
curl https://mise.run | sh
jj(Jujutsu)
curl -LsSf https://github.com/jj-vcs/jj/releases/latest/download/jj-x86_64-unknown-linux-musl.tar.gz \
| tar xzf - -C ~/.local/bin jj
GitHub CLI
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
| sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] \
https://cli.github.com/packages stable main" \
| sudo tee /etc/apt/sources.list.d/github-cli.list
sudo apt update && sudo apt install -y gh
Chezmoi(点文件同步)
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply YOUR_GITHUB_USERNAME