From e273cf004e1ff0510aee61416885f3003bcd15d9 Mon Sep 17 00:00:00 2001 From: Brandon Weaver Date: Tue, 14 Nov 2017 06:37:31 -0800 Subject: Update ruby.plugin.zsh (#2117) Added some Gem command shorthands, and ruby shorthand --- plugins/ruby/ruby.plugin.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/ruby') diff --git a/plugins/ruby/ruby.plugin.zsh b/plugins/ruby/ruby.plugin.zsh index 38e4d7cd0..177b35b31 100644 --- a/plugins/ruby/ruby.plugin.zsh +++ b/plugins/ruby/ruby.plugin.zsh @@ -4,3 +4,11 @@ alias sgem='sudo gem' # Find ruby file alias rfind='find . -name "*.rb" | xargs grep -n' + +# Shorthand Ruby +alias rb="ruby" + +# Gem Command Shorthands +alias gin="gem install" +alias gun="gem uninstall" +alias gli="gem list" -- cgit v1.2.3-70-g09d2 From c64964469559cea37a19cdfe847a95f41562993f Mon Sep 17 00:00:00 2001 From: MasterOfTheTiger Date: Thu, 4 Oct 2018 03:48:29 -0700 Subject: ruby: add README (#7212) --- plugins/ruby/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 plugins/ruby/README.md (limited to 'plugins/ruby') diff --git a/plugins/ruby/README.md b/plugins/ruby/README.md new file mode 100644 index 000000000..ad2755bbf --- /dev/null +++ b/plugins/ruby/README.md @@ -0,0 +1,20 @@ +# Ruby plugin + +This plugin adds aliases for common commands used in dealing with [Ruby](https://www.ruby-lang.org/en/) and [gem packages](https://rubygems.org/). + +To use it, add `ruby` to the plugins array in your zshrc file: + +```zsh +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 | +| gin | `gem install` | Install a gem into the local repository | +| gun | `gem uninstall` | Uninstall gems from the local repository | +| gli | `gem list` | Display gems installed locally | -- cgit v1.2.3-70-g09d2