DevZero Logo
DevZero

Personal Config Files

Managing personal configuration files in DevZero workspaces.

You can bring your personal config files (dotfiles, like ~/.gitconfig) to DevZero workspaces using chezmoi.

Getting started

These steps are adapted from the chezmoi quick start guide

  1. On your development machine, install chezmoi:
sh -c "$(curl -fsLS get.chezmoi.io)"
  1. Initialize it
chezmoi init
  1. Add your configuration files
chezmoi add ~/.bashrc
  1. Open a shell in the chezmoi source directory, to commit your changes:
chezmoi cd
git add .
git commit -m "Initial commit"
  1. create a github repository called dotfiles, and push your changes
git remote add origin git@github.com:<your-github-username>/dotfiles.git
git branch -M main
git push -u origin main
exit

Using chezmoi with DevZero

If you have an existing dotfiles repository, using chezmoi is as easy as running this command:

sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply <your-github-username>

To use it in your recipes, add this to your build steps:

version: "3"
build:
  steps:
    - type: apt-get
      packages: ["curl", "git"]
    - type: command
      command: |
        sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply <your-github-username>

On this page