Use ASDF for version managment
ASDF has plugins for Ruby, Node, Elixir, Haskell, Scala, Go, etc. Instead of finding and installing a new tool each time we have need for a version manager in a new tools, we can use the same tool we already know, adding a new plugin. This change is the result of a successful [research card][1] and has a corresponding change to [laptop][2]. [1]: https://trello.com/c/MVbfz8e5/676-asdf-for-tool-management [2]: https://github.com/thoughtbot/laptop/pull/502
This commit is contained in:
parent
b5c26215a1
commit
3d11861f82
2 changed files with 5 additions and 3 deletions
|
@ -219,7 +219,7 @@ configuration:
|
|||
[Ruby](https://www.ruby-lang.org/en/) configuration:
|
||||
|
||||
* Add trusted binstubs to the `PATH`.
|
||||
* Load rbenv into the shell, adding shims onto our `PATH`.
|
||||
* Load the ASDF version manager, falling back to rbenv if not installed.
|
||||
|
||||
Shell aliases and scripts:
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
# ensure dotfiles bin directory is loaded first
|
||||
PATH="$HOME/.bin:/usr/local/sbin:$PATH"
|
||||
|
||||
# load rbenv if available
|
||||
if command -v rbenv >/dev/null; then
|
||||
# load ASDF, falling back to rbenv if not available
|
||||
if [ -d "$HOME/.asdf" ]; then
|
||||
. $HOME/.asdf/asdf.sh
|
||||
elif command -v rbenv >/dev/null; then
|
||||
eval "$(rbenv init - --no-rehash)"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue