Bash No Longer Changes Directory
Setting PROMPT_COMMAND
to cd
is a pretty common prank, if you didn't set it, and you're the only user, then yes, you've been compromised.
If friends have access though, this is a prank I've seen numerous times, talk with them.