Just have the git repo where you maintain the files, and then create a symlink to them from the appropriate directories.
So let's say you have your bashrc file at e.g. ~/git/config/bashrc. You'd just do ln -s ~/git/config/bashrc ~/.bashrc, and then programs will follow the symbolic link at ~/.bashrc to the actual path of the file.
IIRC some programs aren't able to deal with symlinked config files, in which case you should use a hard link (remove the -s from the ln command earlier).
Just have the git repo where you maintain the files, and then create a symlink to them from the appropriate directories.
So let's say you have your
bashrcfile at e.g.~/git/config/bashrc. You'd just doln -s ~/git/config/bashrc ~/.bashrc, and then programs will follow the symbolic link at~/.bashrcto the actual path of the file.IIRC some programs aren't able to deal with symlinked config files, in which case you should use a hard link (remove the
-sfrom thelncommand earlier).End of this list.
Back to top