Optional
Dotfiles
To manage my dotfiles, I’m currently using chezmoi.
Before we can use the dotfiles we need to download them first, duh.
It’s literally one line (changing the argument to your GitHub username if you maintain a fork):
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply DustVoice
I’m using jj currently, and will therefore use it to clone and make changes to my dotfiles repository.
This means we can’t use an one-liner, however. Instead follow these steps
-
Make sure the target directory exists
Terminal window mkdir -p ~/.local/share -
Clone the repository to
~/.local/share/chezmoi
(changing the URL to you GitHub username if you maintain a fork).Terminal window jj git clone --colocate https://github.com/DustVoice/dotfiles.git ~/.local/share/chezmoi -
Initialize and apply the dotfiles
Terminal window chezmoi init --apply -
Create chezmoi’s config file at
~/.config/chezmoi/chezmoi.toml
, changing the defaultgit pull
command to usejj
.~/.config/chezmoi/chezmoi.toml [update]command = "nu"args = ["-c", "jj git fetch; jj rebase -d main@origin"]