ruby.plugin.zsh 649 B

123456789101112131415161718192021222324252627
  1. # Run sudo gem on the system ruby, not the active ruby
  2. alias sgem='sudo gem'
  3. # Find ruby file
  4. alias rfind='find . -name "*.rb" | xargs grep -n'
  5. # Shorthand Ruby
  6. alias rb="ruby"
  7. # Gem Command Shorthands
  8. alias gein="gem install"
  9. alias geun="gem uninstall"
  10. alias geli="gem list"
  11. alias gei="gem info"
  12. alias geiall="gem info --all"
  13. alias geca="gem cert --add"
  14. alias gecr="gem cert --remove"
  15. alias gecb="gem cert --build"
  16. alias geclup="gem cleanup -n"
  17. alias gegi="gem generate_index"
  18. alias geh="gem help"
  19. alias gel="gem lock"
  20. alias geo="gem open"
  21. alias geoe="gem open -e"
  22. alias rrun="ruby -e"
  23. alias rserver="ruby -e httpd . -p 8080" # requires webrick