终端美化:让你的命令行好看又好用
## 为什么要美化
一个好用的终端能大幅提升效率。自动补全、语法高亮、Git 状态显示都是免费的。
## 工具选型
终端模拟器:iTerm2(macOS)、Windows Terminal、Alacritty(跨平台)。Shell:Zsh + Oh My Zsh 最推荐。
## 必装插件
zsh-autosuggestions(灰色提示)、zsh-syntax-highlighting(语法高亮)、z(智能跳转)、git/docker 补全。推荐 powerlevel10k 主题和 Nerd Font 字体。
## 实用别名
```bash
alias dps='docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"'
alias dc='docker compose'
alias gs='git status'
```
服务器端不需要华丽主题,简单配色 + 别名就够了。花 20 分钟配好,能用好几年。
💬 暂无评论