rio
rio copied to clipboard
Customizable configuration file location
Currently, Rio does not support customization of the path to the config file. Ideas for supporting it are collected in this issue.
Current Behavior
On macOS and Linux (current)
$HOME/.config/rio/config.toml
On Windows (current)
%USERPROFILE%\AppData\Local\rio\config.toml
New Behavior (draft)
On macOS and Linux (new)
-
$RIO_CONFIG_HOME/config.toml
(if$RIO_CONFIG_HOME
is set) -
$XDG_CONFIG_HOME/rio/config.toml
(if$XDG_CONFIG_HOME
is set) -
$HOME/.config/rio/config.toml
(otherwise)
On Windows (new)
-
%RIO_CONFIG_HOME%\config.toml
(if%RIO_CONFIG_HOME%
is set) -
%XDG_CONFIG_HOME%\rio\config.toml
(if%XDG_CONFIG_HOME%
is set) -
%APPDATA%\rio\config.toml
(otherwise)
Feel free to share your ideas!
For windows we can use the XDG_CONFIG_HOME
as well right?
For windows we can use the
XDG_CONFIG_HOME
as well right?
Updated!
@raphamorim What do you think about the last fallback path on macOS being $HOME/Library/Application Support/rio/config.toml
?
I would prefer to keep $HOME/.config/rio/config.toml
in macos as the fallback for XDG_CONFIG_HOME
and RIO_CONFIG
is not set, mostly due to reasons of compatibility to old users