> That way, your history only contains commands you actually would want to rerun.
just turn on the thing where a leading space doesn't commit to history and you can do this already.