Skip to content

Commit 3d11861

Browse files
derekpriorgeoffharcourt
authored andcommitted
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]: thoughtbot/laptop#502
1 parent b5c2621 commit 3d11861

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ configuration:
219219
[Ruby](https://www.ruby-lang.org/en/) configuration:
220220

221221
* Add trusted binstubs to the `PATH`.
222-
* Load rbenv into the shell, adding shims onto our `PATH`.
222+
* Load the ASDF version manager, falling back to rbenv if not installed.
223223

224224
Shell aliases and scripts:
225225

zsh/configs/post/path.zsh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# ensure dotfiles bin directory is loaded first
22
PATH="$HOME/.bin:/usr/local/sbin:$PATH"
33

4-
# load rbenv if available
5-
if command -v rbenv >/dev/null; then
4+
# load ASDF, falling back to rbenv if not available
5+
if [ -d "$HOME/.asdf" ]; then
6+
. $HOME/.asdf/asdf.sh
7+
elif command -v rbenv >/dev/null; then
68
eval "$(rbenv init - --no-rehash)"
79
fi
810

0 commit comments

Comments
 (0)