Breaking Bad (aka habitual thoughts)

When you decided it was time to start thinking like a non-drinker, how did you make that shift in habit so that you no longer EVER thought about alcohol? I want to be someone who desires to drink water and does so and for whom sugary soft drinks, iced tea, etc does not even enter the awareness as a possibility. What are the mechanics of breaking a habit of thought?