Skip to content

Help you manage various configuration files in your system, like .nvim、.zshrc and etc.

Notifications You must be signed in to change notification settings

tim101010101/ezcfg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ezcfg

Help you manage various configuration files in your system, like .nvim.zshrc and etc.

🚧 Work in Progress

ezcfg is currently in active development...

Install

unix

brew tap tim101010101/ezcfg
brew install ezcfg

windows

Not supported for the time being.

Usage

Find a place to centrally manage your configuration files.

For example, I choose ~/.dotfiles/.

cd ~
mkdir .dotfiles

Create 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.toml

At this time, our directory structure will probably be like this.

~/.dotfiles
├──nvim
│  ├──init.lua
│  ├──lazy-lock.json
│  └──lua
├──zsh
│  └──.zshrc
└──.ezcfg.toml

Now just run the command.

ezcfg

After 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