Cool but I'm not a big fan of the idea by storing "state" in aliases that later commands can reference. (It's better than environment variables though.)
For source code I've had a really good experience with ctags[1].
For source code I've had a really good experience with ctags[1].