String historyPersistent = System.getProperty("aesh.historypersistent");
if(historyPersistent != null && historyPersistent.length() > 0)
if(historyPersistent.equalsIgnoreCase("true") ||
historyPersistent.equalsIgnoreCase("false"))
builder.persistHistory(Boolean.parseBoolean(historyPersistent));
String historyDisabled = System.getProperty("aesh.historydisabled");
if(historyDisabled != null && historyDisabled.length() > 0)
if(historyDisabled.equalsIgnoreCase("true") ||
historyDisabled.equalsIgnoreCase("false"))