We demonstrate and characterize a highly linearly polarized (18.8 dB) narrow spectral emission (<80 pm) from an all-fiber Tm laser utilizing femtosecond-laser-written fiber Bragg gratings. Thermally-dependent anisotropic birefringence is observed in the FBG transmission, the effects of which enable both the generation and elimination of highly linearly polarized output. To our knowledge, this is the first detailed study of such thermal anisotropic birefringence in femtosecond-written FBGs.