kpj / dotfiles

My dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

Dotfiles organized using chezmoi.

Usage

Use dotfiles on new machine

Quickstart:

$ xcode-select --install
$ sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply kpj

Or (after setting up environment):

# retrieve dotfiles
$ chezmoi init git@github.com:kpj/dotfiles.git

# check which changes would be made
$ chezmoi diff

# apply them
$ chezmoi apply -v

Update existing dotfile

# add a new file
$ chezmoi add <file>

# edit files
$ chezmoi edit <file>
$ chezmoi -v apply # -n

# commit changes
$ chezmoi cd
$ git diff
$ git add <file>
$ git commit
$ git push

Update dotfiles from remote

$ chezmoi update -v

About

My dotfiles


Languages

Language:Shell 100.0%