Unverified Commit cffa9a2f authored by Celestino Gomes's avatar Celestino Gomes Committed by GitHub

feat(ruby): add new aliases `rrun` and `rserver` (#10218)

parent eb94df64
......@@ -11,10 +11,12 @@ plugins=(... ruby)
## Aliases
| Alias | Command | Description |
|--------|----------------------------------------|------------------------------------------------------|
| ------- | -------------------------------------- | ---------------------------------------------------- |
| rb | `ruby` | The Ruby command |
| sgem | `sudo gem` | Run sudo gem on the system ruby, not the active ruby |
| rfind | `find . -name "*.rb" \| xargs grep -n` | Find ruby file |
| rrun | `ruby -e` | Execute some code: E.g: `rrun "puts 'Hello world!'"` |
| rserver | `ruby -e httpd . -p 8080` | Start HTTP Webrick serving local directory/files |
| gein | `gem install` | Install a gem into the local repository |
| geun | `gem uninstall` | Uninstall gems from the local repository |
| geli | `gem list` | Display gems installed locally |
......
......@@ -22,3 +22,5 @@ alias geh="gem help"
alias gel="gem lock"
alias geo="gem open"
alias geoe="gem open -e"
alias rrun="ruby -e"
alias rserver="ruby -e httpd . -p 8080" # requires webrick
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment