is a type of (narrower)
(psychology) an automatic pattern of behavior in reaction to a specific situation; may be inherited or acquired through frequent repetition
"owls have nocturnal habits"; "she had a habit twirling the ends of her hair"; "long use had hardened him to it"