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.
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)
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)
# 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
···
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?
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. =)
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).
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
>
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: