It will depend on how well you have repaired your credit since your short sale. Were you paying everything on time? Were you paying down your debt?
Has your credit score recovered?
For some, if may take less than three years provided they did everything right to repair their credit. But if your credit history shows more and continuing examples of delinquency as well as being over extended, it may take longer
Best that you speak with a mortagage lender to get preapproved. And if not, then you can seek advice on what you will need to do to get to that point where you qualify for a mortgage.
For what you can do to repair your credit, go to myfico.com. Here's the link