bash is for wussies
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
ocsh.rb

README.md

ocsh

A macruby shell. Strives to be both unixy and rubyish and objcish at the same time.

Differentiates between 'interactive' commands (prints to stdout) and 'capturing' commands (returns its value as array of lines). default to interactive, as that's the Unix default. Run command as "capture" by suffixing underscore: _.

10:35:04 nevyn:ocsh$ ls
ocsh.rb        README.md
=> true
10:35:06 nevyn:ocsh$ ls_
=> ["ocsh.rb", "README.md"]

Unixifies rubyish arguments.

git 'commit', :m => "Refactor and do more fancy stuff with args"
git 'commit', :amend

:m becomes -m, :foobar becomes --foobar.

Config file is at ~/.ocshrc. Just type ruby in it. ocsh is just irb with a method_missing, so ~/.irbrc will be run too, after ocsrc.