I amIt is not completely sure what you are asking, but an alias just expands to what is in the alias. If you have two aliases, you can append the different commands, even aliases.
alias "foo=cd /path/to/foo; go"
alias "foo2=cd /path/to/foo2; go"
In any other situation, you could specify a function in your .bashrc
function go ()
{
if [ "$PWD" == "/path/to/foo" ]; then
cmd1
elif [ "$PWD" == "/path/to/go" ]; then
cmd2
fi;
}
IfIn case you have more choices, you could better use a case structure may be better.