make set of `ls` command state local to the command.