Compact multiline commands into one in history