Derek Shelton, who spent the past two seasons as the Twins’ bench coach, has been hired as the Pirates’ manager.