1. Information

2. Linux

2.1. Installation

  • Install Git.

  • Install Git Credential Manager.

  • Enter the following commands at a Command Line.

    cd
    sh -c "$(curl -fsLS get.chezmoi.io)"
    echo $PATH      # /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    info found chezmoi version 2.70.0 for latest/linux/amd64
    info found glibc version 2.41
    info installed bin/chezmoi
  • Log out and log in again to include $HOME/bin in the PATH variable.

  • Enter the following commands at a Command Line.

    echo $PATH              # /home/delta/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    which chezmoi           # /home/delta/bin/chezmoi
    chezmoi --version       # chezmoi version v2.70.0, commit 6624b49786a9f039f05b4d929c35fd4f4bf17337, built at 2026-03-09T23:24:29Z, built by goreleaser

2.2. Configuration

  • Enter the following commands at a Command Line.

    cd
    chezmoi init
    ls -al ~/.local/share/chezmoi/
    
    # Open a shell in the source directory, to commit the changes.
    chezmoi cd
    echo "# Debian-Dotfiles" >> README.md
    git add README.md
    git commit -m "Initial commit"
    exit
  • Create a new private repository on GitHub called Debian-Dotfiles.

  • Enter the following commands at a Command Line.

    chezmoi cd
    git branch -M main
    # Push the repo to GitHub.
    git remote add origin https://github.com/delta-software-labs/Debian-Dotfiles.git
    git push -u origin main
    exit
    # Modify and "~/.bash*" files.
    # Copy "~/.bash*" files to "~/.local/share/chezmoi" folder.
    chezmoi add ~/.bashrc
    chezmoi add ~/.bashrc_aliases
    chezmoi add ~/.bash_aliases
    
    chezmoi cd
    git status -s
    git add .
    git commit -m "Bash files"
    git-log
    git push
    exit
    
    # See exactly what changes would be made.
    chezmoi --dry-run --verbose apply
    # Apply the changes.
    chezmoi --verbose apply
    chezmoi diff

3. Windows

3.1. Installation

  • Install Git.

  • Install Git Credential Manager.

  • Enter the following commands at a Command Prompt.

    winget.exe install twpayne.chezmoi
    Found chezmoi [twpayne.chezmoi] Version 2.70.0
    This application is licensed to you by its owner.
    Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
    Downloading https://github.com/twpayne/chezmoi/releases/download/v2.70.0/chezmoi_2.70.0_windows_amd64.zip
        13.1 MB / 13.1 MB
    Successfully verified installer hash
    Extracting archive...
    Successfully extracted archive
    Starting package install...
    Path environment variable modified; restart your shell to use the new value.
    Command line alias added: "chezmoi"
    Successfully installed
  • Enter the following commands at a Command Prompt.

    where chezmoi           # C:\Users\Douwe\AppData\Local\Microsoft\WinGet\Packages\twpayne.chezmoi_Microsoft.Winget.Source_8wekyb3d8bbwe\chezmoi.exe
    chezmoi.exe --version   # chezmoi version v2.70.0, commit 6624b49786a9f039f05b4d929c35fd4f4bf17337, built at 2026-03-09T23:24:29Z, built by goreleaser

3.2. Configuration

  • Enter the following commands at a Command Prompt.

    cd
    chezmoi init
    dir %UserProfile%\.local\share\chezmoi\
    
    # Open a shell in the source directory, to commit the changes.
    chezmoi cd
    echo # Windows-Dotfiles >> README.md
    git add README.md
    git commit -m "Initial commit"
    exit
  • Create a new private repository on GitHub called Windows-Dotfiles.

  • Enter the following commands at a Command Prompt.

    chezmoi cd
    git branch -M main
    # Push the repo to GitHub.
    git remote add origin https://github.com/delta-software-labs/Windows-Dotfiles.git
    git push -u origin main
    exit
    chezmoi add "C:\Users\Douwe\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json
    
    chezmoi cd
    git status -s
    git add .
    git commit -m "Windows Terminal files"
    git-log
    git push
    exit
    
    # See exactly what changes would be made.
    chezmoi --dry-run --verbose apply
    # Apply the changes.
    chezmoi --verbose apply
    chezmoi diff

4. Usage

chezmoi update