Allow configuring history file path via `config.nu`
Basics
- [x] I have done a basic search through the issue tracker to find similar or related issues.
- [x] I have made myself familiar with the available features of Nushell for the particular area this enhancement request touches.
Related problem
Currently, the only way to fully disable history is by using the --no-history flag, which cannot be applied when logging into a TTY (e.g. at system login or display manager startup).
This makes it difficult or impossible for users who don't want their shell history written to disk.
Describe the solution you'd like
Add support for defining the history file path in config.nu, for example:
$env.config.history.path = "/dev/null"
Describe alternatives you've considered
--no-history flag (not usable for TTY login)
Additional context and details
No response
What happens if you set $env.config.history.max_size equal to 1 or 0?
What happens if you set
$env.config.history.max_sizeequal to 1 or 0?
An empty history file is still created.
Hey! 👋
could I give it a shot and try to implement what you need?
Hey! 👋
could I give it a shot and try to implement what you need?
I'll be glad.