Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable JShell history

JShell by default enables a persistent history of everything typed, which can be recalled by pressing the up arrow.

Where is the setting to turn this ❝feature❞ off?

Also, how do I even clear the current history? Maybe I'm dumb but I can't figure out the command. /reset seems to do nothing.

like image 316
Boann Avatar asked Oct 14 '18 18:10

Boann


1 Answers

Also, how do I even clear the current history?

What I'm proposing is clearly a hack but it seems to be working, at least in Windows 10 with JDK11.0.4:

Run Registry Editor and search for the '/J/Shell' key. Once found (under HKCU and HKUsers), delete all /H/I/S/T/O/R/Y_/L/I/N/E_ values under HKUsers. That fixed it for me; so far, the darn thing works, nothing looks broken...

like image 56
Igor Soudakevitch Avatar answered Nov 08 '22 17:11

Igor Soudakevitch