This is done first by review, by assessment of oneself with relation to where one wants to go, by looking, by close looking and navigation of how one constructs ones daily universe.
Then it is by controlling environment in such a way as to remove the distractions that then lead to bad habits. Play it out and do it for the day. Then start back at reviewing it and looking at it. Did it work? If so keep doing it. If not change it up again, and keep looking at it until you figure it out, and get it.
Don’t stop looking at it. If you do nothing else, make sure that you keep looking at it on a daily basis.