Summarize this article:

Less friction equals less static electricity. Running your fingers through your hair will reduce the amount of friction on your hair, while using a brush can increase it. The more friction and static electricity, the more flyaway hairs. A couple things to note about using shampoo and conditioner to control flyaways:   You don't have to shampoo your hair every day. Shampooing every day is a recipe for dried-out hair. Unless you work in a greasy, sweaty, or dirty place — or your hair desperately needs to be cleaned every day — try to only wash it once every two or three days.   But when you do shampoo, choose an anti-frizz or moisturizing shampoo. Anti-frizz and moisturizing shampoos are packed with moisturizing agents like aloe vera, essentially providing extra safeguards against dryness. When shampooing, focus most of your energy on cleaning your scalp, not drying out your ends. Choose a shampoo that is made for your hair type. For example, if you have curly hair, choose a shampoo that is labeled as curly.  Every time you shampoo, condition. Conditioning your hair helps keep it from drying out and breaking into flyaways and split ends. When you condition, focus mainly on your ends. If you use many styling products in your hair, the build-up over time can cause flyaways. To combat this, use a clarifying shampoo at least once a month. Be sure to condition your hair afterwards. Look for products that have the words "quat" or "amine" in them, as they do a better job of conducting electricity than silicone- or alcohol-based products. Products that conduct electricity better mean fewer flyaways. Hair with too much breakage can cause flyaways as well. It is easier to prevent hair breakage than treat it. Handle your hair gently. Some ways you can prevent hair breakage include:  Using silk pillow cases Putting heat tools such as hairdryers and curling irons on low settings Reducing chemical treatments Choosing cloth elastic bands Remember that taming flyaways is all about keeping moisture locked in your hair. If you shampoo and condition the right way, use the right products, and control any flyaway frizz that crops up with anti-static cheats, you'll be golden.

Summary:
Run your fingers through your hair instead of using a brush if you're prone to flyaways. Use a shampoo especially for frizzy hair, and don't forget to condition! Use a clarifying shampoo once a month. Make your hair more conductive by applying special leave-in products. Avoid hair breakage. Finished.