Skip to content

CyberKatze/dotfiles

Repository files navigation

⚙️ Dotfiles

My personal dotfiles in the linux system using chezmoi (dotfile manager).

⚡ Usage

1. Install Chezmoi

curl

sh -c "$(curl -fsLS chezmoi.io/get)"

wget

sh -c "$(wget -qO- chezmoi.io/get)"

PowerShell

(irm -useb https://chezmoi.io/get.ps1) | powershell -c -

Arch

pacman -S chezmoi

2. Get dotfiles

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

3. Use chezmoi

Add

chezmoi add ~/.bashrc
  • This will copy ~/.bashrc to ~/.local/share/chezmoi/dot_bashrc.

Edit

chezmoi edit ~/.bashrc
  • This will open ~/.local/share/chezmoi/dot_bashrc in your $EDITOR. Make some changes and save the file.

Diff

chezmoi diff
  • see what changes chezmoi would make

Apply

chezmoi -v apply
  • -n for dry run

Update

chezmoi update
  • pull the changes from your repo and apply them in a singe command

About

My personal dotfiles for linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published