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 chezmoichezmoi 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.gitchezmoi add ~/.bashrc- This will copy
~/.bashrcto~/.local/share/chezmoi/dot_bashrc.
chezmoi edit ~/.bashrc- This will open
~/.local/share/chezmoi/dot_bashrcin your$EDITOR. Make some changes and save the file.
chezmoi diff- see what changes chezmoi would make
chezmoi -v apply-nfor dry run
chezmoi update- pull the changes from your repo and apply them in a singe command