Git Product home page Git Product logo

Comments (3)

rocode avatar rocode commented on July 18, 2024 4

Personally, I think shell history is important enough to be kept in the DATA dir.

There's several projects with thousands of stars that save more info about your history, adds an easier search mechanism, syncs it between machines, etc., so I think I'm not alone on this.

I'd say we stick with it for zsh, and change it to DATA for bash. Let me know your opinion, since I don't want to base this on just on my own opinion.

It's a tough call. XDG_STATE_HOME was only recently introduced, with the first proposal being in December of 2016 and implementation into the specification in May of 2021.

I believe the rule of thumb is that state is machine-specific, while data is cross-machine. Since shell history is most commonly used to build completion rules/suggestions, you wouldn't want it transferred to other machines with a different context, or worse, leak sensitive data.

I am going to propose standardizing on STATE, since it appears to be the current specifications standard for history files, and seems to follow with the initial proposal.

Looking forward to any other thoughts or opinions before settling one way or another. :)

from xdg-ninja.

b3nj5m1n avatar b3nj5m1n commented on July 18, 2024

Personally, I think shell history is important enough to be kept in the DATA dir.

There's several projects with thousands of stars that save more info about your history, adds an easier search mechanism, syncs it between machines, etc., so I think I'm not alone on this.

I'd say we stick with it for zsh, and change it to DATA for bash. Let me know your opinion, since I don't want to base this on just on my own opinion.

from xdg-ninja.

b3nj5m1n avatar b3nj5m1n commented on July 18, 2024

Convinced me. If someone cares enough about their history files, they probably know what to do anyway.

Feel free to submit a PR to change this for bash and zsh, otherwise I'll do it myself tomorrow.

from xdg-ninja.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.