GitHub - rbrauner/dotbot-vscode

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

  1. Add this plugin to your dotfiles repository as a git submodule git submodule add https://github.com/rbrauner/dotbot-vscode
  2. Add vsocde or vscodefile directive to your config file
  3. Edit you install script 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: code
  • uninstall-not-listed: false
  • extensions: []

vscodefile

  • file - REQUIRED
  • exec: code
  • uninstall-not-listed: false