trim one's sails; take one's cue from changing conditions; tack with the wind
Copyright © 2018 WordTech Co.