Created
October 26, 2019 17:29
-
-
Save po-miyasaka/dff57d3d15963938da6eecd3d1574f23 to your computer and use it in GitHub Desktop.
全てのgemを消す奴 ~bundle installをパス指定せずにやってしまったあなたへ~
This file contains hidden or 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
#! /bin/bash | |
declare -a gems=($(gem list --no-versions)) | |
for x in `seq 0 ${#gems[@]}` | |
do | |
eval gem uninstall -aIx \"\${gems[x]}\" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment