From 18666e3475d3a4180d9becc03cb105fcaa6c6801 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 6 Jul 2024 18:09:04 +0800 Subject: added submodule --- dot-oh-my-zsh | 1 + dot-oh-my-zsh/plugins/ruby/README.md | 33 ------------------------------ dot-oh-my-zsh/plugins/ruby/ruby.plugin.zsh | 26 ----------------------- 3 files changed, 1 insertion(+), 59 deletions(-) create mode 160000 dot-oh-my-zsh delete mode 100644 dot-oh-my-zsh/plugins/ruby/README.md delete mode 100644 dot-oh-my-zsh/plugins/ruby/ruby.plugin.zsh (limited to 'dot-oh-my-zsh/plugins/ruby') diff --git a/dot-oh-my-zsh b/dot-oh-my-zsh new file mode 160000 index 00000000..6fe84bf5 --- /dev/null +++ b/dot-oh-my-zsh @@ -0,0 +1 @@ +Subproject commit 6fe84bf5c82da7b1f6d7c5ec3e5c447721ac8cea 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 -- cgit v1.2.3