Add A Ruby Gem
Global Ruby gems are managed via a list.
Preconditionsโ
- Ruby and
gemare installed. - You verified the gem name.
Stepsโ
-
Add the gem name to:
This installs as
~/.default-gems. -
Apply:
chezmoi apply
Hook:
Verificationโ
gem list --local | rg '^<gemname> '
Rollback / Undoโ
- Remove the gem from
home/readonly_dot_default-gems. - Re-apply so the gem is no longer part of the desired list:
chezmoi apply
- Uninstall the already-installed gem manually:
gem uninstall <gemname>
The hook installs listed gems only; it does not uninstall gems removed from the list.