The structure of this repository is inspired by Alex Pearce and Abdullah Khabir.
-
- Don't forget to add
eval "$(/opt/homebrew/bin/brew shellenv)to your$HOME/.zshrc
- Don't forget to add
-
Clone this repository into your
$HOMEfolder.$ git clone git@github.com:gfeiyou/dotfiles.git $HOME/.dotfiles $ cd $HOME/.dotfiles
-
Install tools from Brewfile (stow, tmux, nvim, ...)
brew bundle
This also installs the fonts: Victor Mono and the Nerd Fonts v3
Symbols Nerd Font(icons for nvim/tmux via terminal font fallback). Restart the terminal afterwards. Keep icon glyphs on Nerd Fonts v3 codepoints (brew install nerdfix && nerdfix check -r <path>finds obsolete ones). -
Stow needed config
stow wezterm nvim tmux ...
-
(opencode) Install agent skills & tools:
~/.config/opencode/scripts/sync-skills.shThis installs (all globally, nothing written into the repo):
- skills listed in
opencode/.config/opencode/skills-lock.json→~/.agents/skills/(private sources need GitHub SSH access) - OpenSpec skills and
/opsx:*commands →~/.config/opencode/{skills,commands}/(git-ignored). Re-run the script afterbrew upgrade openspec. In a new project, runopenspec init --tools noneonce to createopenspec/. - Plannotator binary and
/plannotator-*commands (the plan-review plugin itself is set inopencode.json)
To add a skill, record it in the lock, then sync:
cd ~/.config/opencode npx skills add <owner/repo> --skill <name> -a opencode -y # updates skills-lock.json ./scripts/sync-skills.sh
To remove one, delete its entry from
skills-lock.jsonandrm -rf ~/.agents/skills/<name>. - skills listed in
-
Restart zsh, zinit and zsh plugins will be installed automatically.
-
Start nvim, plugins, lsps, and treesitters will be installed automatically.
-
Start tmux, tpm and plugins will be installed automatically.
MIT.