Skip to content

Store history.txt in central location #100

Closed

Description

@sophiajt

Right now, it's possible for history.txt to appear in different parts of the file system depending on when and where you use nu. Would be nice if this history was part of config, or generally lived in a central location.

Activity

  1. wycats commented on Aug 26, 2019

    @wycats
    Contributor

    It seems like this could be in config, and default to the system paths we already get from the directories crate.

    In order to move it into the config, we'd need to make sure that we refresh the config often enough to avoid it feeling broken.

    Possible options:

    • update the config after invoking config
    • update the config before every line in the shell (seems too slow at first glance)
    • watch the config using FS watching
  2. wycats commented on Aug 26, 2019

    @wycats
    Contributor

    Making it default to the directories we're already using seems like a good first issue.

  3. wycats commented on Aug 27, 2019

    @wycats
    Contributor

    We'll go with a readonly file for now and iterate based on practical user needs.

  4. makarchuk commented on Oct 3, 2019

    @makarchuk

    The code in question (save history.txt area) seems to be recently updated (df7a3a4), and not it's stored in user home, so should this be closed?

  5. sophiajt commented on Oct 20, 2019

    @sophiajt
    ContributorAuthor

    @makarchuk - I think we can close this and track related questions separate.

  6. added a commit that references this issue on Feb 7, 2022
  7. added a commit that references this issue on Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions