Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
cffa9a2f
Unverified
Commit
cffa9a2f
authored
Dec 29, 2021
by
Celestino Gomes
Committed by
GitHub
Dec 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ruby): add new aliases `rrun` and `rserver` (#10218)
parent
eb94df64
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
19 deletions
+23
-19
README.md
plugins/ruby/README.md
+21
-19
ruby.plugin.zsh
plugins/ruby/ruby.plugin.zsh
+2
-0
No files found.
plugins/ruby/README.md
View file @
cffa9a2f
...
@@ -11,10 +11,12 @@ plugins=(... ruby)
...
@@ -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 |
...
...
plugins/ruby/ruby.plugin.zsh
View file @
cffa9a2f
...
@@ -22,3 +22,5 @@ alias geh="gem help"
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment