This particular nuance of the usage for the term may be recent, but the term is common in
Thomas Aquinas and may, for all I know about the history of philosophy, be all over the place much earlier. I am fairly sure that Aquinas's usage is a Latin translation (all the word literally means is "habit") from an Aristotelian term from the ethical works. --
MichaelTinkler