Skip to content

UPSTREAM PR #17425: feat: add support for custom history file path in config#38

Open
loci-dev wants to merge 1 commit intomainfrom
loci/pr-17425-feat-add-history-path-config
Open

UPSTREAM PR #17425: feat: add support for custom history file path in config#38
loci-dev wants to merge 1 commit intomainfrom
loci/pr-17425-feat-add-history-path-config

Conversation

@loci-dev
Copy link

@loci-dev loci-dev commented Feb 2, 2026

Note

Source pull request: nushell/nushell#17425

Closes #17419

The PR adds support for configuring a custom history file path via $env.config.history.path in config.nu

We allow users to redirect history to /dev/null or any custom location, which is particularly useful for TTY login scenarios where the --no-history flag cannot be used

$env.config.history.path = "/dev/null"  # disable history
$env.config.history.path = "~/custom/history.txt"  # custom location

I checked:

  • builds successfully with cargo build --release
  • run toolkit check pr successfully
  • manual testing: Setting $env.config.history.path = "/dev/null" prevents history file creation
  • manual testing: Custom path works correctly

@loci-dev loci-dev force-pushed the main branch 18 times, most recently from 2df8881 to ac21cb1 Compare February 3, 2026 10:16
@loci-dev loci-dev force-pushed the loci/pr-17425-feat-add-history-path-config branch from 40baa24 to ee27b3f Compare February 3, 2026 10:48
@loci-dev loci-dev force-pushed the main branch 3 times, most recently from da22582 to 3f38f88 Compare February 3, 2026 13:30
@loci-dev loci-dev force-pushed the main branch 5 times, most recently from 8f7f3e1 to cd989c3 Compare February 13, 2026 03:31
@loci-dev loci-dev force-pushed the main branch 3 times, most recently from d0a8c7a to 6102c29 Compare February 18, 2026 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants