How do you change a bad habit? Working at not doing that thing is probably not the best way to go about it. You may need to rethink what the problem is. Is the problem really about losing your temper? Is it really about being impatient or angry? Trying not to be impatient can probably make you crazy.
First of all, recognize that the unsavory aspect of your life is actually sin. Repent. Just repent. Ask Jesus to forgive you and it will be covered by the blood of Christ. Your slate is clean. If you find yourself doing the same thing again, then repent again. Don’t sweat it.
Now be filled with the fruits of the Spirit: love, joy, peace, patience, kindness, goodness, faithfulness, gentleness, self-control. (Gal 5:22) So many issues that we face can resolved by living with these gifts. Patience and kindness alone will change your life.
Stop looking at the bad aspects and start looking for the greatness that God has put in you. Yes, it’s in you. If you have given your life to Jesus, then you have everything you need. His divine power has given to us all things that pertain to life and godliness. (2Pet 1:3) You stop doing bad things when you start living in Christ.