mirror of
https://github.com/Hilbis/Hilbish
synced 2025-07-03 17:52:02 +00:00
* refactor: put file history handler in line reader instance instead of global * feat: add lua history handler in go * feat: use lua to retrieve readline history * refactor: handle history in lua this also introduces a new opt: history if it is false, command history won't get added * fix: remove nature.history require * docs: add changes in changelog * fix: add comma after history opt
6 lines
156 B
Lua
6 lines
156 B
Lua
local bait = require 'bait'
|
|
|
|
bait.catch('command.exit', function(_, cmd, priv)
|
|
if not priv and hilbish.opts.history then hilbish.history.add(cmd) end
|
|
end)
|