Install asdf plugins and programming languages with dotbot.
This plugin requires dotbot to be installed.
Also, at runtime this plugin requires asdf command to be installed.
- Run:
git submodule add https://github.com/sobolevn/dotbot-asdf.git- Modify your
./installwith new plugin directory:
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir dotbot-asdf -c "${CONFIG}" "${@}"Add required options to your install.conf.yaml:
# This example uses python, nodejs and ruby plugins:
- asdf:
- plugin: python
url: https://github.com/tuvistavie/asdf-python.git
- plugin: nodejs
url: https://github.com/asdf-vm/asdf-nodejs.git
- plugin: ruby
url: https://github.com/asdf-vm/asdf-ruby.gitPlugins can also be specified with just a name for known plugins:
# This example uses python, nodejs and ruby plugins:
- asdf:
- plugin: python
- plugin: nodejs
- plugin: rubyYou can even install desired versions of languages and the global version:
# This example installs python 3.7.4, nodejs 12.10 and ruby 2.6.4:
- asdf:
- plugin: python
url: https://github.com/tuvistavie/asdf-python.git
global: 3.7.4
versions:
- 3.7.4
- plugin: nodejs
url: https://github.com/asdf-vm/asdf-nodejs.git
global: 12.10
versions:
- 12.10
- plugin: ruby
url: https://github.com/asdf-vm/asdf-ruby.git
global: 2.6.4
versions:
- 2.6.4It's also possible to configure the location for asdf in case asdf itself was installed as part of the dotbot install process. This will cause the plugin to source the provided script before every asdf command.
Only the first instance of asdf_path in the configuration will be respected.
- asdf:
- asdf_path: /opt/asdf-vm/asdf.sh
- plugin: python
global: 3.10.4
versions:
- 3.10.4That's it!
MIT. See LICENSE for more details.