这是一个使用 fish shell、Oh-My-Fish (OMF) 和 oh-my-posh 的 dotfiles 配置。
- Shell: fish(通过 Oh-My-Fish 管理)
- 提示符: oh-my-posh(atomicBit 主题)
- 字体: MesloLGS Nerd Font
- 工具: bat, rg, eza, zoxide, dust, broot, fd, fzf, btm, httpie, gping, doggo, procs, tldr
- 克隆此仓库到
~/.dotfiles:
git clone git@github.com:Becoues/term_conf.git ~/.dotfiles- 运行一键引导脚本:
bash ~/.dotfiles/scripts/bootstrap.sh-
配置终端字体:
- iTerm2 / VS Code 终端: 将字体改为
MesloLGS Nerd Font - VS Code: Terminal 默认 Shell 选 fish(必要时 args:
["-l"]让它作为登录 shell)
- iTerm2 / VS Code 终端: 将字体改为
-
打开新终端即可看到 oh-my-posh 的 atomicBit 主题与所有替代命令生效。
~/.dotfiles/
├─ Brewfile # Homebrew 包清单
├─ fish/
│ ├─ config.fish # fish 主配置文件
│ ├─ conf.d/00-env.fish # 环境变量配置
│ └─ functions/ # 自定义函数(可选)
├─ omf/
│ └─ bundle # OMF 包列表
├─ oh-my-posh/
│ └─ config.omp.json # oh-my-posh 自定义配置(可选)
└─ scripts/
└─ bootstrap.sh # 一键初始化脚本
在主机 A 上安装了新包后,更新 Brewfile:
brew bundle dump --file ~/.dotfiles/Brewfile --force
git add ~/.dotfiles/Brewfile
git commit -m "更新 Brewfile"
git push在主机 B 上同步:
git pull
brew bundle --file ~/.dotfiles/Brewfilels/ll/tree→ ezacat→ batgrep→ rgfind→ fdtop→ btmping→ gpingdig→ doggops→ procsh→ tldrj→ zoxide 快速跳转
MIT