updating command line based on recent changse