Giter VIP home page Giter VIP logo

rsh's Introduction

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.

rsh's People

Contributors

pablo-merino avatar

Stargazers

Gareth Griffiths avatar Hunter Dolan avatar

Watchers

 avatar James Cloos avatar  avatar

rsh's Issues

"help" breaks

help
./rubysh.rb:75:in enter': undefined local variable or methodprint_help' for #RubySH::Shell:0x7f045e683c88 (NameError)
from ./rubysh.rb:45:in prompt' from ./rubysh.rb:36:inloop'
from ./rubysh.rb:36:in `prompt'
from s.rb:2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.