Also remove cd from history.