Attempt to fix garbage history on linux
Don't print history if nothing was inserted