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
- On your development machine, install chezmoi:
sh -c "$(curl -fsLS get.chezmoi.io)"
- Initialize it
chezmoi init
- Add your configuration files
chezmoi add ~/.bashrc
- Open a shell in the chezmoi source directory, to commit your changes:
chezmoi cd
git add .
git commit -m "Initial commit"
- 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>