Skip to content

Becoues/term_conf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles 配置

这是一个使用 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

快速开始

首次部署/新电脑

  1. 克隆此仓库到 ~/.dotfiles
git clone git@github.com:Becoues/term_conf.git ~/.dotfiles
  1. 运行一键引导脚本:
bash ~/.dotfiles/scripts/bootstrap.sh
  1. 配置终端字体:

    • iTerm2 / VS Code 终端: 将字体改为 MesloLGS Nerd Font
    • VS Code: Terminal 默认 Shell 选 fish(必要时 args: ["-l"] 让它作为登录 shell)
  2. 打开新终端即可看到 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            # 一键初始化脚本

更新 Brewfile

在主机 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/Brewfile

命令别名

  • ls / ll / tree → eza
  • cat → bat
  • grep → rg
  • find → fd
  • top → btm
  • ping → gping
  • dig → doggo
  • ps → procs
  • h → tldr
  • j → zoxide 快速跳转

许可证

MIT

About

终端配置 自用

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors