I'm working on a project that accomplishes just that. Check it out: localalias.
Here's a demo:
Funny enough, I actually used go
as an example in the demo. I did not show switching directories (something I should change about the demo) but the functions with the la
command are indeed local to the directory they are defined in.