Nov 3, 2012; Boulder, CO, USA; Stanford Cardinal head coach David Shaw during the game against the Colorado Buffaloes at Folsom Field. The Cardinal defeated the Buffaloes 48-0. Mandatory Credit: Ron Chenoy-USA TODAY Sports

Stanford announced today that they have agreed to terms on a “long-term contract” with head coach David Shaw. Terms of the deal were not announced.

Shaw took the helm of the football program in 2011 after Jim Harbaugh’s departure to the San Francisco 49ers, and has led the team to a 22-4 record in two seasons.

This season, even with Andrew Luck gone to the NFL, the Cardinal reached their first Rose Bowl game in 13 years. They also managed to upset Oregon on the road, ending the Ducks’ undefeated season.

“I feel blessed to work every day with an outstanding staff and coach the best group of young men in America, and I am excited to lead the Stanford Football program for many years to come,” said Shaw.

Shaw was a wide receiver for Stanford from 1991-1994, and has coaching experience in the NFL as anassistant. He was the offensive coordinator under Harbaugh at Stanford, and was promoted to head coach once Harbaugh took the job with the 49ers.