Skip to content

Repository files navigation

dotfiles

Personal dotfiles managed with chezmoi.

Included configs

  • private_dot_zshrc - Zsh configuration file, which includes the public dot_zshrc and adds private settings.
  • private_dot_zshrc.local - Local machine overrides sourced by private_dot_zshrc (created by default; includes macOS VS Code code fallback).
  • private_dot_zimrc - Zim configuration file, which includes the public dot_zimrc and 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 initialize zimfw modules (reruns when script content changes and updates modules if already installed).
  • run_once_12_install_nvm_node.sh.tmpl - Install nvm, install Node LTS, and set default Node alias.
  • run_once_20_install_vim_plugins.sh.tmpl - Install vim-plug and plugins declared in dot_vimrc.

Install order

The scripts are prefixed with numbers to enforce execution order:

  1. run_once_10_install_cli_tools.sh.tmpl
  2. run_onchange_11_install_zimfw.sh.tmpl
  3. run_once_12_install_nvm_node.sh.tmpl
  4. run_once_20_install_vim_plugins.sh.tmpl

Notes:

  • dot_ideavimrc requires 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, and tldr; it also installs Node LTS via nvm and sets it as the default alias.
  • Both install scripts print an execution summary at the end: Installed / Updated / Skipped / Failed.

Usage

One-command bootstrap (recommended)

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 ensures zsh is installed and switched as default shell.
  • If zsh installation or shell switch fails, bootstrap exits and asks user to install from zsh official site.

Bootstrap via git

git clone https://github.com/Bayyys/dotfiles.git
cd dotfiles
./bootstrap.sh

Manual chezmoi flow

chezmoi init <repo-url>
chezmoi apply

On 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.

Update dotfiles

chezmoi update

Add / Modify dotfiles

chezmoi add <file-path>
chezmoi edit <file-path>

About

@Bayyy dotfiles

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages