Spakman / urchin

A Unix shell for Ruby programmers.
http://spakman.github.com/urchin/
GNU General Public License v3.0
36 stars 1 forks source link

Hooks for running something when cd-ing into or out of a directory #12

Open Spakman opened 13 years ago

Spakman commented 13 years ago

I'm not entirely what the syntax for specifying this should be. Perhaps something like:

cd_on_entry do
  rake db:migrate
  rails server
end
brandondrew commented 11 years ago

how about this?

on_directory_entry do
  # do something...
end
Spakman commented 11 years ago

That's a lot nicer - cool!

Ideally, we'd just be able to enter this directly on the Urchin command line (once the parser becomes multi-line aware).