I use bash under linux on my 386, with the following function in my
.profile, which looks for .go and .come files on exiting and entering a
directory, and if it finds them, executes them:
cd=()
{
if [ -O .go ]; then
source .go;
fi;
builtin cd $*;
if [ -O .come ]; then
source .come;
fi
What I would like is for it to *also* search each parent directory allQuote:}
the way back to the / directory, until it finds a .Go or .Come, and
execute those as well. That way, in addition to having specific
configuration based on directory, it could also be based on whole trees.
I wouldn't ask this question, except that all my own attempts have been
too slow because of my lack of skill. Could someone help me out with an
efficient solution?
Zack