ffap-shell-prompt-regexp

ffap-shell-prompt-regexp is a variable defined in `ffap.el'.
Its value is
"[$%><]*"


Documentation:
Paths matching this regexp are stripped off the shell prompt.
If nil, ffap doesn't do shell prompt stripping.

You can customize this variable.