add time segment in shell