Helper for modifying system configs by mapping a name/key to the config path.
Can also use default/example configs when the original config file doesn't exist yet.
~ > rconf nvim
Will open the nvim config file in the configured editor (vim by default).
And the following will open the rconf config using rconf for ease of use in cross platform
~ > rconf rconf
Specifying a config file
~ > rconf --config /path/to/config.toml rconf
Only printing the path
~ > rconf --print rconf
Show help
~ > rconf --help
You can install rconf using your preferred AUR Helper
~ > paru -S rconf (latest tag)
I might add support for other distros later, for now use manual installation on other distros
To build rconf you need cargo installed.
- Clone rconf
git clone git@github.com:jasonverbeek/rconf.git - cd to the repo
cd rconf - Build using cargo
cargo build --release - Move result to
~/.local/bin/mkdir -p ~/.local/bin/ && mv target/release/rconf ~/.local/bin/ - Make sure
~/.local/bin/is on your$PATH
After running rconf once you can find a configuration file at ~/.config/rconf/rconf.toml
Currently the config file contains 2 examples (vim, nvim). you can add your own configs here like so:
[[ config ]]
name = 'qtile'
path = '~/.config/qtile/config.py'
default_path = '/usr/share/doc/qtile/default_config.py'
namename used with rconf (rconf <name>). the executable name (vim/nvim) is used in the example config.pathpath to the config file.default_pathdefault_path will be copied when thepathfile is missing. This can be used to point to example configurations.- Use
'/dev/null'or''if there is no example available
- Use
Default location for configs:
GNU/Linux ~/.config/rconf/rconf.toml
MacOS ~/Library/Application Support/rs.rconf/rconf.toml
Windows %AppData%\rconf\config\rconf.toml
- move to directories-next instead of waiting on confy 0.5.0
- add cli parsing
- support
--printto print path instead of edit the file - support
--configto use a different config file - NOTE: to upgrade to 2.0.0 from macOS you need to move your config file
- Old: ~/Library/Preferences/rs.rconf/rconf.toml
- New: ~/Library/Application Support/rs.rconf/rconf.toml
mv ~/Library/Preferences/rs.rconf ~/Library/Application Support/
- fix for MacOS config path until confy 0.5.0 is out.
- NOTE: in version rconf v2.0.0 you will need to move your config on MacOS
- Old: ~/Library/Preferences/rs.rconf/rconf.toml
- New: ~/Library/Application Support/rs.rconf/rconf.toml
mv ~/Library/Preferences/rs.rconf ~/Library/Application Support/
- error messages and example config based on OS
- include rconf itself in the example config so you can run
~ > rconf rconfto edit the config
- Basic functionality to map config files
- initial version