RSH is a SH compliant shell, completely coded in Ruby
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
README.md
rubysh.gemspec

README.md

RSH

Install RSH right now!

To install RSH right now you just have to gem install rsh.

What is RSH?

RSH is a UNIX and SH compliant shell built in Ruby. It features all the traditional Shell commands (basically anything in the $PATH) and evaluating ruby code:

  • eval puts "some ruby code can be put here"

This is in alpha stage, it might contain bugs (it was built in a few hours :P)

How do I start it?

It's simple, get on Terminal, cd to he directory and run ruby s.rb. Your terminal screen will clear and the RSH prompt will appear.

How do I kill it?

If you didn't enabled debug mode just use quit. Else just use Ctrl-C.

If this doesn't works, open a new window and use killall ruby. That should kill it.

More info

  • It doesn't needs any gems for now
  • It uses Colorize by fazibear but slighty modified for bright (bold) letters.-
  • It has a little config file (.rsh) in the script directory. It contains the version and the state of debug mode. (Debug mode shows the command and the arguments on every enter and makes it so you can Ctrl-C and quit it.)
  • It has been only tested on:
    • Mac OS X Lion 10.7.3 and Ruby 1.9.3-p125
    • Fedora Core 16 and Ruby 1.9.3-p125

RSH

License

rsh - RSH is a UNIX and SH compliant shell built in Ruby

Copyright (C) 2012 Pablo Merino

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.