My personal dotfiles in the linux system using chezmoi (dotfile manager).
sh -c "$(curl -fsLS chezmoi.io/get)"
sh -c "$(wget -qO- chezmoi.io/get)"
(irm -useb https://chezmoi.io/get.ps1) | powershell -c -
pacman -S chezmoi
chezmoi init
- This will create a new git local reposityry in ~/.local/share/chezmoi where chezmoi will store its source sate
- Install your dotfiles on new machine with a single command
chezmoi init --apply https://github.com/username/dotfiles.git
chezmoi add ~/.bashrc
- This will copy
~/.bashrc
to~/.local/share/chezmoi/dot_bashrc
.
chezmoi edit ~/.bashrc
- This will open
~/.local/share/chezmoi/dot_bashrc
in your$EDITOR
. Make some changes and save the file.
chezmoi diff
- see what changes chezmoi would make
chezmoi -v apply
-n
for dry run
chezmoi update
- pull the changes from your repo and apply them in a singe command