This repo uses chezmoi to manage my dotfiles.
For a read-only copy:
$ sh -c "$(curl -fsLS chezmoi.io/get)" -- init --apply prashantv
For a git clone that can be used for pushes:
$ sh -c "$(curl -fsLS chezmoi.io/get)" -- init --ssh --apply prashantv
This requires an SSH key to be setup, and added to GitHub,
ssh-keygen
, then get the key,cat ~/.ssh/id_rsa.pub
- Add to GitHub.
- curl (for any install)
- git + ssh key added to GitHub (for writable clone)
- Pass
--branch <branch>
to to initialize from a specific branch (useful when developing). - GitHub SSH Key Management
- Install
zsh
and change shell usingchsh
.
$ sudo apt update && sudo apt --yes install git-core curl zsh
$ ssh-keygen
$ cat ~/.ssh/id_rsa.pub
## Open https://github.com/settings/keys and copy above key
$ sh -c "$(curl -fsLS chezmoi.io/get)" -- init --branch dev --ssh --apply prashantv
$ sudo chsh $(whoami) --shell $(which zsh)
## Restart shell to open up zsh
$ mkdir -p ~/.ssh && curl https://github.com/prashantv.keys | tee -a ~/.ssh/authorized_keys