-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Allow config path to be specified via environment variable #89
Comments
tlrc uses the Regardless of that, there is a |
macOS
It specifies different standard user's config paths for different OSs. Many programs use a built-in search order for configs. e.g.
Yes, I am already added it. |
I wanted to try reporting this upstream, but it seems that people have requested this feature multiple times and they keep rejecting every request they get. This has been discussed in dirs-dev/directories-rs#47. Anyway, it's pretty easy to just do this manually. What about the cache directory? Currently it's |
They should be rejected, there is nothing wrong with choosing OS standard dirs. Many programs store configs to
Here are two examples, which are also rust programs: Starship store config in Zoxide store config in OS standard dir just like tlrc. Both of them can set config path via environment variable. So I'm just requesting an environment variable of config path, or config path search order. Request updated. |
I added support for an environment variable, I'll still consider using XDG by default on macOS, since I found a lot of similar requests in other repositories. |
I prefer to put the config file in a manageable dir, e.g.:
~/.config/tlrc/config.toml
The text was updated successfully, but these errors were encountered: