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
installscript with--except encryptaction."${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" --plugin-dir ./dotbot-secret --except encrypt "${@}"
-
Create another
installscript nameddo_encryptwith--only encryptfor encrypt only, then usedo_encryptto encrypt files."${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" --plugin-dir ./dotbot-secret --only encrypt "${@}"
