我的个人终端 / 编辑器配置文件,覆盖 zsh、Neovim、Starship 提示符和 Ghostty 终端。
.
├── zsh/ # Shell 配置
│ └── .zshrc
├── nvim/ # Neovim 配置(基于 LazyVim)
│ └── plugins/
│ ├── leetcode.lua # leetcode.nvim 刷题插件
│ ├── supertab.lua # blink.cmp 的 super-tab 补全键位
│ ├── disabled.lua # 禁用 noice.nvim
│ └── example.lua # LazyVim 自带示例(未加载)
├── starship/
│ └── starship.toml # 提示符主题与多套配色
├── ghostty/
│ ├── config # 终端配置
│ └── shaders/
│ └── cursor_smear_rainbow.glsl # 光标拖影 shader
├── install.sh # 一键软链接安装脚本
└── README.md
| 仓库路径 | 目标路径 |
|---|---|
zsh/.zshrc |
~/.zshrc |
nvim/plugins/ |
~/.config/nvim/lua/plugins/ |
starship/starship.toml |
~/.config/starship/starship.toml |
ghostty/config |
~/.config/ghostty/config |
ghostty/shaders/ |
~/.config/ghostty/shaders/ |
本仓库通过 install.sh 用软链接把配置映射到目标位置,无需 stow 等额外依赖。
# 先预览将要发生什么(不会改动任何文件)
./install.sh --dry-run
# 正式安装:已存在的真实文件会被备份成 *.bak.<时间戳>
./install.sh
# 其他选项
./install.sh --force # 覆盖已存在的真实文件(不备份)
./install.sh --unlink # 移除本脚本创建的软链接
./install.sh --help脚本可重复运行(幂等)。装完后打开新终端、重启 Neovim / Ghostty 即可生效。
- 基于 Oh My Zsh,主题
xxf - 插件:
git、zsh-autosuggestions、zsh-syntax-highlighting、z、extract、web-search y()函数:退出 yazi 后自动cd到它最后所在的目录- 集成 nvm、bun、deno、thefuck、opencode、Homebrew
- 代理环境变量指向
127.0.0.1:7897 - 别名:
v(neovide)、ls/l/la/lla/lt全部改用 lsd - 启动时加载 Starship
- 单行提示符,默认配色
custom1(Catppuccin Mocha 风格) - 内置 5 套可切换配色:
custom1、gruvbox_dark、tokyonight_night、solarized_osaka、one_dark - 自定义模块:
venv—— 显示当前 Python / Conda 虚拟环境giturl—— 根据 remote 显示 GitHub / GitLab / Bitbucket 图标git_worktree—— 处于 git worktree 时显示⛓
- 语言版本显示:Node、Bun、C、Rust、Go、PHP、Java、Kotlin、Haskell、Python、Docker
- 基于 LazyVim 发行版,使用 lazy.nvim 管理
leetcode.lua—— leetcode.nvim,连接 leetcode.cn,默认语言python3,题目存于~/leetcodesupertab.lua—— blink.cmp,<Tab>接受补全 / 跳转代码片段disabled.lua—— 关闭noice.nvim
- 主题
TokyoNight Moon - 字体
Maple Mono NF CN,关闭连字(-calt -liga -dlig) - 窗口 120×30,字号 14,启动位置 (5, 5)
- 块状光标、不闪烁
- 自定义 shader:光标移动时的彩虹拖尾效果
这些配置假设系统已安装:
- zsh + Oh My Zsh,以及插件
zsh-autosuggestions、zsh-syntax-highlighting - Starship
- Neovim(建议 v0.9+)+ LazyVim
- Ghostty
- 辅助工具:lsd、yazi、neovide、thefuck、bun、deno、nvm、Homebrew
个人使用配置,按需取用。