mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
feat(ruby): add new aliases rrun
and rserver
(#10218)
This commit is contained in:
parent
eb94df6428
commit
cffa9a2fda
2 changed files with 23 additions and 19 deletions
|
@ -11,10 +11,12 @@ plugins=(... ruby)
|
||||||
## Aliases
|
## Aliases
|
||||||
|
|
||||||
| Alias | Command | Description |
|
| Alias | Command | Description |
|
||||||
|--------|----------------------------------------|------------------------------------------------------|
|
| ------- | -------------------------------------- | ---------------------------------------------------- |
|
||||||
| rb | `ruby` | The Ruby command |
|
| rb | `ruby` | The Ruby command |
|
||||||
| sgem | `sudo gem` | Run sudo gem on the system ruby, not the active ruby |
|
| sgem | `sudo gem` | Run sudo gem on the system ruby, not the active ruby |
|
||||||
| rfind | `find . -name "*.rb" \| xargs grep -n` | Find ruby file |
|
| 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 |
|
| gein | `gem install` | Install a gem into the local repository |
|
||||||
| geun | `gem uninstall` | Uninstall gems from the local repository |
|
| geun | `gem uninstall` | Uninstall gems from the local repository |
|
||||||
| geli | `gem list` | Display gems installed locally |
|
| geli | `gem list` | Display gems installed locally |
|
||||||
|
|
|
@ -22,3 +22,5 @@ alias geh="gem help"
|
||||||
alias gel="gem lock"
|
alias gel="gem lock"
|
||||||
alias geo="gem open"
|
alias geo="gem open"
|
||||||
alias geoe="gem open -e"
|
alias geoe="gem open -e"
|
||||||
|
alias rrun="ruby -e"
|
||||||
|
alias rserver="ruby -e httpd . -p 8080" # requires webrick
|
||||||
|
|
Loading…
Reference in a new issue