dotbot-vscode
Plugin for dotbot. dotbot-vscode adds two directives: vscode and vscodefile to dotbot, which allows you to installăuninstall or sync your vscode extensions between multi places.
Installation
- Add this plugin to your dotfiles repository as a git submodule
git submodule add https://github.com/rbrauner/dotbot-vscode - Add
vsocdeorvscodefiledirective to your config file - Edit you
installscript to change like this"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir dotbot-vscode -c "${CONFIG}" "${@}"
Detail
This is an example file.
- vscode: # e.x. code, code-insiders, codium exec: code uninstall-not-listed: false extensions: - dbaeumer.vscode-eslint - eamodio.gitlens - eg2.tslint - vscodefile: exec: code file: Vscodefile uninstall-not-listed: false - vscodefile: exec: code-insiders file: Vscodefile uninstall-not-listed: false
For vscode directive, you ought to specify the operation to install or uninstall, default is install.
For vscodefile directive, you ought to generate a vscodefile using code --list-extensions > $DIR/vscodefile command.
In other place, you run ./install -p dotbot-vscode/vscode.py -c vscode.packages.conf.yaml, dotbot-vscode will uninstall the extensions which are installed but not in vscodefile, and install the extensions which are not installed but in vscodefile.
Defaults
vscode
exec: codeuninstall-not-listed: falseextensions: []
vscodefile
file- REQUIREDexec: codeuninstall-not-listed: false