Back to Ohmyzsh

Ruby plugin

plugins/ruby/README.md

latest2.5 KB
Original Source

Ruby plugin

This plugin adds aliases for common commands used in dealing with Ruby and gem packages.

To use it, add ruby to the plugins array in your zshrc file:

zsh
plugins=(... ruby)

Aliases

AliasCommandDescription
rbrubyThe Ruby command
sgemsudo gemRun sudo gem on the system ruby, not the active ruby
rfindfind . -name "*.rb" | xargs grep -nFind ruby file
rrunruby -eExecute some code: E.g: rrun "puts 'Hello world!'"
rserverruby -e httpd . -p 8080Start HTTP Webrick serving local directory/files
geingem installInstall a gem into the local repository
geungem uninstallUninstall gems from the local repository
geligem listDisplay gems installed locally
geigem infoShow information for the given gem
geiallgem info --allDisplay all gem versions
gecagem cert --addAdd a trusted certificate
gecrgem cert --removeRemove a trusted certificate
gecbgem cert --buildBuild private key and self-signed certificate
geclupgem cleanup -nDo not uninstall gem
gegigem generate_indexGenerate index file for gem server
gehgem helpProvide additional help
gelgem lockGenerate a lockdown list of gems
geogem openOpen gem source in default editor
geoegem open -eOpen gem sources in preferred editor