Personal 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.
Tools | Description |
---|---|
Terminal emulator | Windows Terminal (on WSL2) & iTerm2 |
Package manager | Homebrew |
Unix shell | Z shell |
Zsh theme | Powerlevel10k |
Dotfiles manager | chezmoi |
Check out the Quick Start page.
With a single command:
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply ngshiheng
On any machine, you can pull and apply the latest changes from your repo with:
chezmoi update -v
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
scriptThe 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.