Introducing ruSH

Hi,

Traditionally the unix shell pipes text from one command to the next.
ruSH is a ruby object based shell.

It's current features include:
* combo box based completion of directories and ruby syntax
* Piping commands
* Easy implementation of new commands via ruby
* Executing external binaries.
* Aliases

Curses is used to handle the complex text drawing. We found
some bugs and added functions to the current available ruby
curses extension. Please have a look at the readme it has
a link to precompiled replacement as well as links to the fixed
curses.c file.

You can download ruSH here: http://rubyforge.org/frs/?group_id=874
Visit us at #rush on freenode

Please look at the README it has the known issues as well as
the examples of what to do with ruSH.

Does anyone know of a win32 curses extension ?

Thanks.

···

--
Reyn Vlietstra

I've been waiting for something like this to come along.. but I'm
having trouble getting it going. The solution escapes me.

# gem install ruby-breakpoint
Attempting local installation of 'ruby-breakpoint'
Local gem file not found: ruby-breakpoint*.gem
Attempting remote installation of 'ruby-breakpoint'
Successfully installed ruby-breakpoint-0.5.0
Installing RDoc documentation for ruby-breakpoint-0.5.0...

# ruby rush.rb
rush.rb:6:in `require': No such file to load -- breakpoint (LoadError)

Ideas?

You have to have
RUBYOPT=-rubygems
in your environment

···

On 8/27/05, Sy <sy1234@gmail.com> wrote:

I've been waiting for something like this to come along.. but I'm
having trouble getting it going. The solution escapes me.

# gem install ruby-breakpoint
Attempting local installation of 'ruby-breakpoint'
Local gem file not found: ruby-breakpoint*.gem
Attempting remote installation of 'ruby-breakpoint'
Successfully installed ruby-breakpoint-0.5.0
Installing RDoc documentation for ruby-breakpoint-0.5.0...

# ruby rush.rb
rush.rb:6:in `require': No such file to load -- breakpoint (LoadError)

Ideas?

--
Reyn Vlietstra

Again, my apologies for being an utter newbie. =)

# export RUBYOPT=-rubygems
# ruby rush.rb
./BufferedWindow.rb:95:in `display': undefined local variable or
method `clrtoeol' for #<BufferedWindow:0xa7c50288> (NameError)
        from rush.rb:141

···

On 8/26/05, Reyn Vlietstra <reyn.vlietstra@gmail.com> wrote:

You have to have
RUBYOPT=-rubygems
in your environment

On 8/27/05, Sy <sy1234@gmail.com> wrote:
> I've been waiting for something like this to come along.. but I'm
> having trouble getting it going. The solution escapes me.
>
>
>
> # gem install ruby-breakpoint
> Attempting local installation of 'ruby-breakpoint'
> Local gem file not found: ruby-breakpoint*.gem
> Attempting remote installation of 'ruby-breakpoint'
> Successfully installed ruby-breakpoint-0.5.0
> Installing RDoc documentation for ruby-breakpoint-0.5.0...
>
> # ruby rush.rb
> rush.rb:6:in `require': No such file to load -- breakpoint (LoadError)
>
> Ideas?

Yes, thats one of the curses functions I added which were missing.
Please read the readme, it shows where to get the new curses.so

If you dont know where to put it once you get it, mine is in:
/usr/lib/ruby/1.8/i386-linux/curses.so
YMMV

Yell if you still have problems, please give us feedback, thanks :slight_smile:

···

On 8/27/05, Sy <sy1234@gmail.com> wrote:

Again, my apologies for being an utter newbie. =)

# export RUBYOPT=-rubygems
# ruby rush.rb
./BufferedWindow.rb:95:in `display': undefined local variable or
method `clrtoeol' for #<BufferedWindow:0xa7c50288> (NameError)
        from rush.rb:141

On 8/26/05, Reyn Vlietstra <reyn.vlietstra@gmail.com> wrote:
> You have to have
> RUBYOPT=-rubygems
> in your environment
>
> On 8/27/05, Sy <sy1234@gmail.com> wrote:
> > I've been waiting for something like this to come along.. but I'm
> > having trouble getting it going. The solution escapes me.
> >
> >
> >
> > # gem install ruby-breakpoint
> > Attempting local installation of 'ruby-breakpoint'
> > Local gem file not found: ruby-breakpoint*.gem
> > Attempting remote installation of 'ruby-breakpoint'
> > Successfully installed ruby-breakpoint-0.5.0
> > Installing RDoc documentation for ruby-breakpoint-0.5.0...
> >
> > # ruby rush.rb
> > rush.rb:6:in `require': No such file to load -- breakpoint (LoadError)
> >
> > Ideas?

--
Reyn Vlietstra

Aah, I noticed this mention, but assumed I could run the colour-bugged
version without the fix. I'll check into that, thanks. =)

···

On 8/26/05, Reyn Vlietstra <reyn.vlietstra@gmail.com> wrote:

Yes, thats one of the curses functions I added which were missing.
Please read the readme, it shows where to get the new curses.so

I got it working, looks good. I can't wait to start thinking about
replacements for all my 4DOS scripts from way back. =)

···

On 8/26/05, Sy <sy1234@gmail.com> wrote:

Aah, I noticed this mention, but assumed I could run the colour-bugged
version without the fix. I'll check into that, thanks. =)

A screenshot for anyone interested.

http://reyn.co.za/rushtest2.png

···

On 8/27/05, Sy <sy1234@gmail.com> wrote:

On 8/26/05, Sy <sy1234@gmail.com> wrote:
> Aah, I noticed this mention, but assumed I could run the colour-bugged
> version without the fix. I'll check into that, thanks. =)

I got it working, looks good. I can't wait to start thinking about
replacements for all my 4DOS scripts from way back. =)

--
Reyn Vlietstra

Cool. Any reason external scripts aren't supported directly instead
of having to alias them or prepend syntax to them? It is a shell
after all...

Do you have any fancier examples you can post? :slight_smile:

Cheers,
Navin.

···

Reyn Vlietstra <reyn.vlietstra@gmail.com> wrote:

A screenshot for anyone interested.

http://reyn.co.za/rushtest2.png

Yes, interested. Looking good. Especially like the expressions feature. Do you know how many times I've reached for bc or some other calculator to check my arithmetic? Although you can do it in bash it's not as straight forward as it should be. Do you have a directory where you can put new commands?

I'll have to download it a give it a serious work out (time permitting).

Jeff.

···

On 27/08/2005, at 11:16 AM, Reyn Vlietstra wrote:

A screenshot for anyone interested.

http://reyn.co.za/rushtest2.png

I like it. It's exactly what I need !.

Thank you !

···

On Sat, 2005-08-27 at 10:59 +0900, Navindra Umanee wrote:

Reyn Vlietstra <reyn.vlietstra@gmail.com> wrote:
> A screenshot for anyone interested.
>
> http://reyn.co.za/rushtest2.png

jm wrote:

Do you have a directory where you can put new commands?

JM, yes there's a directory where all the commands are held.
All the files in that directory are automatically loaded at startup.
We still need alot of work on the api, eg. parameters should
be parsed automatically etc.

Navindra Umanee wrote:

Any reason external scripts aren't supported directly instead of

having to alias them or prepend syntax to them? It is a shell after
all...

Navindra, that is the $64,000 question, how should this be done ?
Could something like this be usable?:

cat test.rb

x = rush_execute("ls | b | b")
print x[0]

There are a few problems with this aproach, I'll have a look.

···

On 8/27/05, Enrique Meza C <emeza@cdi.gob.mx> wrote:

On Sat, 2005-08-27 at 10:59 +0900, Navindra Umanee wrote:
> Reyn Vlietstra <reyn.vlietstra@gmail.com> wrote:
> > A screenshot for anyone interested.
> >
> > http://reyn.co.za/rushtest2.png
>

I like it. It's exactly what I need !.

Thank you !

--
Reyn Vlietstra

Any work still being done on this? What's the status these days?

···

--
===Tanner Burson===
tanner.burson@gmail.com
http://tannerburson.com <---Might even work one day...

I'm very busy at work atm,
rue has continued working on rush.

Have a look at #rush on freenode.

I truly believe linux/etc. needs this,
have a look, see if you can improve/add anything.

···

On 10/24/05, Tanner Burson <tanner.burson@gmail.com> wrote:

Any work still being done on this? What's the status these days?

--
===Tanner Burson===
tanner.burson@gmail.com
http://tannerburson.com <---Might even work one day...

--
Reyn Vlietstra

Any work still being done on this? What's the status these days?

Yes, although I have not done much recently, mainly due to
trying to perfect and digest the design for it (further
hindered by being busy at work & school). The 0.2 series will
be the implementation of this.

The current state is usable and fun to play with (I use rush
rather than irb, also). Version 0.1.bandicoot is available:

http://www.magical-cat.org/projects/rush/downloads/rush-0.1.bandicoot.tar.gz

Documentation is here:

http://www.magical-cat.org/projects/rush/rdoc/
http://www.magical-cat.org/projects/rush/rdoc-ie/ (IE and Opera.)

IRC is #rush on Freenode.

--
===Tanner Burson==tanner.burson@gmail.com

E (rue)