Assuming that Texas has adopted the provisions of the Uniform Child Custody Jurisdiction Act (UCCJA),
six months is the likely answer.
You need to live in Texas for 6 months, and you must be a resident of the county you wish to file in for 90 days prior. Hope that helps!
Sign up to receive a 5-part series of useful information and advice about child custody law.