How it took me 20 hours to learn process isolation
github.com
github.com
eval $(yourprogram)
... now, set up an alias: alias something='eval $(yourprogram)'
and there you go. "something" can now change your directory (and do anything else by echoing a command.)