Last active
June 1, 2021 07:18
-
-
Save BuonOmo/9aa14a1a3163764e2dd3d333535ac3d0 to your computer and use it in GitHub Desktop.
Clean old rbenv ruby versions with care ⭐️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/.rbenv/versions/ | |
du -sh * | |
cd ~/Dev | |
ruby -e 'pp `fd --no-ignore --hidden '.ruby-version'`.split.group_by { IO.read(_1).strip }' | |
rbenv uninstall --force ... # remove versions that seems useless to you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment