-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
Albert Álef edited this page Feb 3, 2026
·
2 revisions
Add RubyShell to your Gemfile:
gem 'rubyshell'Then run:
bundle installOr add it directly with:
bundle add rubyshellgem install rubyshellrequire 'rubyshell'This extends Kernel with the sh method, making it available everywhere in your Ruby code.
require 'rubyshell'
sh do
puts pwd
endIf you see your current directory printed, RubyShell is working correctly.
Next: Basic Usage