Code Monkey home page Code Monkey logo

Comments (4)

 avatar commented on May 21, 2024 1

To me it sounds like a good idea, in my case what matters is the ability to influence where the program I'm using stores its stuff. IMO the simpler configuration the better.

Configuration files could be checked in the following locations:

1) XDG_CONFIG_HOME/procs/config.toml
2) HOME/procs/config.toml
3) HOME/.procs.toml

I have implemented it for myself (the support for XDG env variable) so I can add and easily access the config easily both on mac and linux https://github.com/krnik/procs/commit/db6a6ab9684469bb4c12a8ebfbf197cb7a5a2075

from procs.

bhagatparwinder avatar bhagatparwinder commented on May 21, 2024

I fully support this mission 🚀

If not the same folder, is there a possibility to set it to a custom folder (so I can sync it to other devices by placing it in Dropbox)?

from procs.

lilyball avatar lilyball commented on May 21, 2024

I really hate that directories uses ~/Library/Application Support on macOS. That's appropriate for GUI apps, but CLI apps really should be using the XDG stuff. This is something I complained about on that crate years ago 😣

In any case, this really should be using ${XDG_CONFIG_HOME:~/.config}/procs/config.toml just like Linux.

@ghost HOME/procs/config.toml is not an appropriate path. No CLI tool should be using non-dotted config dirs in the home folder.

As for alternative locations, such as Dropbox (/cc @bhagatparwinder), there are two reasonable approaches:

  1. Add an env var that points to an alternative config. This is a good idea in general so alternative configs can be provided via a shell alias (that offers the different location) or via any program that might want to wrap procs (or via package managers like Nix that might want to offer configuration of procs in the Nix config).
  2. Ensure that symlinks are supported.

Really both should be done. For Dropbox, I'd suggest just symlinking into Dropbox so the config is used even with a damaged/absent environment. But the env var should be available too for the reasons specified.

from procs.

dalance avatar dalance commented on May 21, 2024

In my understanding, this issue was resolved by #58.
I'll close it, but if there is any remaining issue, please open another issue.

from procs.

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.