shell-cd-regexp

shell-cd-regexp is a variable defined in `shell.el'.
Its value is
"cd"


Documentation:
Regexp to match subshell commands equivalent to cd.

You can customize this variable.