Decreased expression of Prdm16 promotes type 17 immunity gene expression program and lipid-dependent cell fitness, which in turn increases the generation of inducible Vγ4+ γδT17 cells that can respond to infection. Here, PRDM16 is linked to infection.