personal environment files
import your gpg keys
Clone the repo with this chezmoi command line:
sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply fredericrous
#OR: chezmoi init https://github.com/fredericrous/dotfiles.git
Apply dotfiles on the machine with
chezmoi apply -v
During the execution of chezmoi apply
, you'll get prompted for passwords.
Without the passwords you should just remove the files that are
prefixed by encrypted_
and private_
.
Otherwise, have a look at section Data Protection.
To see the differences and resolve the conflict, use the commands:
chezmoi diff
chezmoi merge <file-from-diff>
When the files from the local changed and you just want to override the repository, run:
chezmoi add <file>
It is the same command that is used to add new dotfiles to the repo.
When the files from the repository changed, run
chezmoi apply
apply
will add the files that aren't present in the home folder.
It will asks for every file that has a diff if it should override it.
The command chezmoi merge <file>
helps resolving conflicts before running apply
again.
Login to bitwarden. This is used for:
private_dot_ssh/private_id_rsa
brew install bitwarden-cli
bw config server <url>
bw login
export BW_SESSION="<session id>"
To decrypt, import the key with
gpg --import key