Skip to content

Commit

Permalink
Add deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
derekprior authored and geoffharcourt committed Sep 15, 2017
1 parent 3d11861 commit 346268b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ configuration:
[Ruby](https://www.ruby-lang.org/en/) configuration:

* Add trusted binstubs to the `PATH`.
* Load the ASDF version manager, falling back to rbenv if not installed.
* Load the ASDF version manager.

Shell aliases and scripts:

Expand Down
8 changes: 8 additions & 0 deletions zsh/configs/post/path.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ PATH="$HOME/.bin:/usr/local/sbin:$PATH"
if [ -d "$HOME/.asdf" ]; then
. $HOME/.asdf/asdf.sh
elif command -v rbenv >/dev/null; then
if [ -z $SILENCE_RBENV_DEPRECATION ]; then
echo "The thoughtbot dotfiles have deprecated the use of rbenv in favor"\
"of asdf (https://github.com/asdf-vm/asdf) and will be removed on or"\
"after December 8, 2017. Migrate to asdf or export"\
"SILENCE_RBENV_DEPRECATION=1 in your local dotfiles to silence this"\
"deprecation."
fi

eval "$(rbenv init - --no-rehash)"
fi

Expand Down

0 comments on commit 346268b

Please sign in to comment.