What is it called when you begin to exhibit similar personality traits as someone close to you?

Especially someone you live with, whether that be a partner, roommate, family, etc. I feel like there’s a psychological term for this. Like how we pick up little quirks in passing, or how the behaviors of someone we’re close to tend to rub off on us. There’s a term and I can’t for the life of me find it. “Influence” is as close as I’ve gotten but that’s not the word I’m looking for.


I'd say "behavioral mimicry", though it's more of a biological term.