My configuration (dot) files.
-
Clone the repository in some directory:
git clone [email protected]:zspajich/dotfiles2.0.git my-confiles-dir
-
Enter the directory where you’ve cloned confiles and run confiles script with
initargument:sh confiles init
The script will create a config file (module-name.config) for each module in config directory.
-
Set config for each module
- set destintion directory (where to link/copy the files from module)
- set mode for each module (copy or symlinking)
-
Run confiles script with
addargumentsh confiles add
This will add all modules. Content of each module directory will be copied/symlinked in the destination directory set in config for that module.
To run script for single module use -m options and provide module name:
sh confiles add -m module-name
-
If you want to show some additional message after adding the module create module-name.info file in the info directory and put yor message there
-
You can run the confiles script for single module
sh confiles add - m bash sh confiles init -m bash
- To remove file(s), run
sh confiles remove sh confiles remove -m bash
In folder runnables put some additional scripts to rune. Eg. macos script set some macos defaults I use.
-
Add a new directory to modules directory. The name of the directory you add will be the name of the module.
-
Add to module directory all files or modules you want.
-
Follow steps from instalation procedure.
The code was taken from many sources and used Ivan Nikolic as starting point.