Help you manage various configuration files in your system, like .nvim、.zshrc and etc.
🚧 Work in Progress
ezcfg is currently in active development...
brew tap tim101010101/ezcfg
brew install ezcfgNot supported for the time being.
Find a place to centrally manage your configuration files.
For example, I choose ~/.dotfiles/.
cd ~
mkdir .dotfilesCreate your profiles here, like nvim and zsh/.zshrc
And ezcfg needs a configuration file .ezcfg.toml to tell it how it works.
echo 'links = [
["zsh/.zshrc", "$HOME/.zshrc"],
["nvim", "$HOME/.config/nvim"],
]' > .ezcfg.tomlAt this time, our directory structure will probably be like this.
~/.dotfiles
├──nvim
│ ├──init.lua
│ ├──lazy-lock.json
│ └──lua
├──zsh
│ └──.zshrc
└──.ezcfg.tomlNow just run the command.
ezcfgAfter the command is successfully executed, we can see that the soft links we need is already in the specified location.
~
├──.config
│ └──nvim -> ~/.dotfiles/nvim
└──.zshrc -> ~/.dotfiles/zsh/.zshrc