Personal dotfiles managed with chezmoi.
private_dot_zshrc- Zsh configuration file, which includes the publicdot_zshrcand adds private settings.private_dot_zshrc.local- Local machine overrides sourced byprivate_dot_zshrc(created by default; includes macOS VS Codecodefallback).private_dot_zimrc- Zim configuration file, which includes the publicdot_zimrcand adds private settings.dot_vimrc- Vim configuration file.dot_ideavimrc- IdeaVim configuration file for JetBrains IDEs.run_once_10_install_cli_tools.sh.tmpl- Install core CLI tools and shell integrations.run_onchange_11_install_zimfw.sh.tmpl- Install and initializezimfwmodules (reruns when script content changes and updates modules if already installed).run_once_12_install_nvm_node.sh.tmpl- Installnvm, install Node LTS, and set default Node alias.run_once_20_install_vim_plugins.sh.tmpl- Installvim-plugand plugins declared indot_vimrc.
The scripts are prefixed with numbers to enforce execution order:
run_once_10_install_cli_tools.sh.tmplrun_onchange_11_install_zimfw.sh.tmplrun_once_12_install_nvm_node.sh.tmplrun_once_20_install_vim_plugins.sh.tmpl
Notes:
dot_ideavimrcrequires JetBrains IDE + IdeaVim plugin.- IdeaVim extension capabilities (easymotion/sneak/surround/commentary/which-key) still need corresponding IDE plugins enabled manually.
- CLI installer supports
brew(macOS/Linux) and Linux package managers:apt,dnf,yum,pacman,zypper,apk. - CLI installer includes
nvm,tree, andtldr; it also installs Node LTS vianvmand sets it as the default alias. - Both install scripts print an execution summary at the end: Installed / Updated / Skipped / Failed.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Bayyys/dotfiles/master/bootstrap.sh)"If curl is unavailable:
sh -c "$(wget -qO- https://raw.githubusercontent.com/Bayyys/dotfiles/master/bootstrap.sh)"bootstrap.sh installs chezmoi by OS policy:
- macOS: Homebrew (
brew install chezmoi) - Linux: tries
apt/dnf/yum/pacman/zypper/apk/brew, then falls back to official install script - Before installing
chezmoi, bootstrap ensureszshis installed and switched as default shell. - If zsh installation or shell switch fails, bootstrap exits and asks user to install from zsh official site.
git clone https://github.com/Bayyys/dotfiles.git
cd dotfiles
./bootstrap.shchezmoi init <repo-url>
chezmoi applyOn first apply, run_once_10_install_cli_tools.sh.tmpl, run_onchange_11_install_zimfw.sh.tmpl, run_once_12_install_nvm_node.sh.tmpl, and run_once_20_install_vim_plugins.sh.tmpl will run automatically.
chezmoi updatechezmoi add <file-path>
chezmoi edit <file-path>