A few suggestions are:
Create a penalty box (akin to a swear jar)
Spend time thinking about the habit before taking action
Understand what triggers the habit
Change your environment
Make small incremental adjustments
Coach yourself out of the habit
Obviously some habits are harder than others to break,
Create an action and a relapse plan.
no big deal, it's simply a matter of will power . . . how I wish I have it