A simple script to copy configuration files from any location to $HOME/.config/dotfiles
and replaces the original file with a symlink.
Useful for adding config files to one directory for version control backups and tracking changes.
Simply copy the script to $HOME/bin
or wherever your local binaries are stored.
If you do not currently have a directory for local binaries, simply create $HOME/bin
and add the following line to your .bashrc
file:
export PATH="$HOME/bin:$PATH"
As this is a work in progress, please ensure you make a backup of your existing config files before executing this script.
Requires Python 3.
Simply execute the following command:
$ cnf.py ~/.vim
A new file $HOME/.config/dotfiles/.vim
will be created and the original file replaced with a symlink.
Additional command-line arguments:
--input-file
Specify a file containing a list of config files/directories for writing to$HOME/.config/dotfiles
in bulk.
- Python 3 using the following libraries:
- os
- argparse
- shutil
- json
Feel free to contribute or fork and tailor it to your own needs.
- Kevin Sanderson
This project is licensed under the MIT License - see the LICENSE.md file for details