Comments (4)
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.
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.
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:
- 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 ofprocs
in the Nix config). - 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.
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)
- How to build aarch64 version HOT 2
- Custom location of config files HOT 4
- Feature request - Add 'footer' option to be equal header HOT 2
- Support displaying current directory of the process? HOT 2
- Fails to build on FreeBSD HOT 1
- how do i know which config is used? HOT 2
- Bump time from 0.1.44 to 0.2.23 HOT 2
- Respect `DOCKER_HOST` for reading docker info HOT 3
- Smart case search seems broken in 0.13.4 HOT 1
- Trimming command column on the left HOT 2
- Some parameters are not available on mac HOT 1
- Column UserLogin shows 4294967295 HOT 2
- [Windows, internal pager] Arrow keys doesn't work before other key is pressed HOT 1
- `procs -i Pid` displays `Parent PID`, not `PID`, sometimes HOT 1
- CVE-2023-26964 in hyper HOT 1
- [Feature Request] Add ability to filter out processes from output via regexp and/or parent status HOT 2
- Failed to build procs because of minus dependency using E0658 — use of unstable library feature 'int_log' HOT 4
- [Feature request] Add structured output like JSON to make output parsing easier HOT 1
- [FreeBSD 13.1] procs does not compile HOT 1
- Add --color=always option to preserve color to fzf? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from procs.