| Crates.io | cfg-cli |
| lib.rs | cfg-cli |
| version | 0.1.2 |
| created_at | 2024-12-21 05:17:36.869615+00 |
| updated_at | 2025-05-06 20:39:21.622631+00 |
| description | A program configuration tool. |
| homepage | |
| repository | https://github.com/vi013t/cfg |
| max_upload_size | |
| id | 1490759 |
| size | 22,956 |
cfgA CLI tool for quickly opening config files for various programs.
On Linux:
cargo install cfg-cli
For example, running
cfg bash
will open ~/.bashrc with the editor set in ~/.config/cfg/cfg.toml (set to $EDITOR by default). You can also explicitly pass an editor command:
cfg neovim --with vim
will open ~/.config/nvim/init.lua.
Many programs also have aliases, which are shortened names that can be used to configure them, i.e., to configure Neovim, you can also do:
cfg nvim
For a full list of programs and their config files and aliases, see the default configuration.
All config file paths and aliases can be changed, and new programs can be added via the config in ~/.config/cfg/cfg.toml, which will be automatically created upon the first time running cfg.