Summary Files Commits Branches @commit @diff @stats
NameSize
.Xresources1.7 KiBlog stats plain blame
.bash_logout18 Blog stats plain blame
.bash_profile141 Blog stats plain blame
.bashrc17.4 KiBlog stats plain blame
.claws-mail252 Blog stats plain
.config774 Blog stats plain
.dmrc46 Blog stats plain blame
.gitconfig193 Blog stats plain blame
.globalgitignore333 Blog stats plain blame
.gtkrc-2.0617 Blog stats plain blame
.inputrc221 Blog stats plain blame
.moc73 Blog stats plain
.runelite47 Blog stats plain
.screenrc351 Blog stats plain blame
.scripts309 Blog stats plain
.sxhkdrc200 Blog stats plain blame
.sylpheed-2.0154 Blog stats plain
.tmux.conf16 Blog stats plain blame
.wakatime.cfg177 Blog stats plain blame
.xsession260 Blog stats plain blame
README.md439 Blog stats plain blame
install.sh834 Blog stats plain blame
jgmenu51 Blog stats plain blame

home.files

These are my dotfiles.

This repo succeeds Syndamia/dotfiles (where the idea was to make your entire home directory a git repo) and code from commit 375d11b overhauls the way to manage files.

Init

cd ~
git clone https://git.syndamia.com/conf/.files
cd .files
./make link

Usage

Everything is done with the make POSIX shell script. The files in every directory mirror the folder structure which in the home directory (so, .files/A/B/c.txt will be linked/copied/... to ~/B/c.txt). In SYSTEM there is a file for every currently configured hostname, listing each subdirectory in .files which should be handled.

make supports the following actions (all preserving folder structure):

  • import - move file(s) from home dir to a given subdir, and create a symlink from its location in home to the one in .files
  • export - copy file(s) from .files to home dir
  • link - iterating through all subdirs listed in the appropriate file under SYSTEM, export and import all files, or in other words, create links from the appropriate home dir location to .files for all files and folders.
  • safe_link - like link, however, if the corresponding file in home is different than the one under .files do not import it (leave it as-as and do not create a symlink)
  • unlink - iterating through all subdirs listed in the appropriate file under SYSTEM, remove all links in home to files in .files. Also removes any empty directories which might be left.