7
2
Apologies if the answer to this is obvious, but I haven't been able to find one yet (perhaps because I'm searching with the incorrect terminology).
I am on a Mac running Snow Leopard and I would like to know if it is possible to have a shell command (or a script) run automatically when I enter/cd into that directory.
An example to better illustrate my question: I use RVM for managing versions of Ruby. It employs a similar tactic with it's project .rvmrc files. These files are run when the directory they are contained in is entered in order to use the correct version of Ruby for that specific project.
I would like to do something similar in order to display the contents of a todo.txt file when I enter that files containing directory.
Entering as in
cd
ing there? – Daniel Beck – 2011-05-14T09:42:10.857Yep "Entering" == "cd-ing" – Mark Scholtz – 2011-05-14T12:04:43.367