Summary Files Commits Branches @commit @diff @stats
NameSize
.gitignore92 Blog stats plain blame
README.md1.6 KiBlog stats plain blame
SYSTEM132 Blog stats plain
bash152 Blog stats plain
git82 Blog stats plain
mail78 Blog stats plain
make7.2 KiBlog stats plain blame
misc106 Blog stats plain
misc_tray / .config34 Blog stats plain
misc_tui / .moc31 Blog stats plain
nixos / .config / nix34 Blog stats plain
nvim66 Blog stats plain
openbox_de206 Blog stats plain
openbox_de_largefont72 Blog stats plain
scripts / bin30 Blog stats plain
terminal148 Blog stats plain
terminal_largefont / .config / terminator34 Blog stats plain
vim65 Blog stats plain
wakatime41 Blog stats plain

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.