dotbot plugins for encrypt/decrypt private file.
dotbot-secret will encrypt file in src_path
and write to dst_path
.
- decrypt:
-
src_path: './encrypt'
dst_path: './decrypt'
- ['src_path', 'dst_path']
- encrypt:
-
src_path: './decrypt'
dst_path: './encrypt'
- ['src_path', 'dst_path']
-
Add dotbot-secret as a submodule in your dotfiles repo and sync it when init dotbot.
git submodule add https://github.com/er1c-zh/dotbot-secret.git
-
Modify
install
script with--except encrypt
action."${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" --plugin-dir ./dotbot-secret --except encrypt "${@}"
-
Create another
install
script nameddo_encrypt
with--only encrypt
for encrypt only, then usedo_encrypt
to encrypt files."${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" --plugin-dir ./dotbot-secret --only encrypt "${@}"