dotfiles

Personal dotfiles

Stars
6

Jerry's dotfiles

These dotfiles are managed using chezmoi.

Upon fresh installation, the run_once_install-packages.sh (idempotent and POSIX compliant) script would be executed once.

What I use

Tools Description
Terminal emulator Windows Terminal (on WSL2) & iTerm2
Package manager Homebrew
Unix shell Z shell
Zsh theme Powerlevel10k
Dotfiles manager chezmoi

Getting started

Check out the Quick Start page.

Install chezmoi and the dotfiles on any new machine

With a single command:

sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply ngshiheng

Update

On any machine, you can pull and apply the latest changes from your repo with:

chezmoi update -v

Prompts

For managing machine-to-machine differences.

To add/remove/edit prompts:

vim ~/.local/share/chezmoi/.chezmoi.toml.tmpl

To test templates, use chezmoi execute-template < dot_gitconfig.tmpl (ref).

run_once_install-packages.sh script

The run_once_install-packages.sh script runs with the following assumptions (i.e. requirements):

  • bash is installed; this is so that it can install Homebrew.
  • zsh as the default Unix shell of choice.

Check out the Understand How Scripts Work page.

Reference

How To Manage Dotfiles With Chezmoi