summaryrefslogtreecommitdiff
path: root/dot-oh-my-zsh/plugins/ruby
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-07-06 18:09:04 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-07-06 18:09:04 +0800
commit18666e3475d3a4180d9becc03cb105fcaa6c6801 (patch)
treee80c0968dc91258afdbe5337c1478efd2f43a006 /dot-oh-my-zsh/plugins/ruby
parentbb533a817ed9449942905e0c5c8164f4474fbf0c (diff)
added submodule
Diffstat (limited to 'dot-oh-my-zsh/plugins/ruby')
m---------dot-oh-my-zsh0
-rw-r--r--dot-oh-my-zsh/plugins/ruby/README.md33
-rw-r--r--dot-oh-my-zsh/plugins/ruby/ruby.plugin.zsh26
3 files changed, 0 insertions, 59 deletions
diff --git a/dot-oh-my-zsh b/dot-oh-my-zsh
new file mode 160000
+Subproject 6fe84bf5c82da7b1f6d7c5ec3e5c447721ac8ce
diff --git a/dot-oh-my-zsh/plugins/ruby/README.md b/dot-oh-my-zsh/plugins/ruby/README.md
deleted file mode 100644
index 59d839c5..00000000
--- a/dot-oh-my-zsh/plugins/ruby/README.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# 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 |
-| 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 |
-| gei | `gem info` | Show information for the given gem |
-| geiall | `gem info --all` | Display all gem versions |
-| geca | `gem cert --add` | Add a trusted certificate |
-| gecr | `gem cert --remove` | Remove a trusted certificate |
-| gecb | `gem cert --build` | Build private key and self-signed certificate |
-| geclup | `gem cleanup -n` | Do not uninstall gem |
-| gegi | `gem generate_index` | Generate index file for gem server |
-| geh | `gem help` | Provide additional help |
-| gel | `gem lock` | Generate a lockdown list of gems |
-| geo | `gem open` | Open gem source in default editor |
-| geoe | `gem open -e` | Open gem sources in preferred editor |
diff --git a/dot-oh-my-zsh/plugins/ruby/ruby.plugin.zsh b/dot-oh-my-zsh/plugins/ruby/ruby.plugin.zsh
deleted file mode 100644
index 40851211..00000000
--- a/dot-oh-my-zsh/plugins/ruby/ruby.plugin.zsh
+++ /dev/null
@@ -1,26 +0,0 @@
-# Run sudo gem on the system ruby, not the active ruby
-alias sgem='sudo gem'
-
-# Find ruby file
-alias rfind='find . -name "*.rb" | xargs grep -n'
-
-# Shorthand Ruby
-alias rb="ruby"
-
-# Gem Command Shorthands
-alias gein="gem install"
-alias geun="gem uninstall"
-alias geli="gem list"
-alias gei="gem info"
-alias geiall="gem info --all"
-alias geca="gem cert --add"
-alias gecr="gem cert --remove"
-alias gecb="gem cert --build"
-alias geclup="gem cleanup -n"
-alias gegi="gem generate_index"
-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