Skip to content
Shotaro Fujimoto edited this page Feb 18, 2016 · 5 revisions

dot - This script can manage your dotfiles.

Manage dotfiles - How?

People like GitHub to use as personal backup for some configuration files(dotiles).

  1. Create repository in GitHub (may called "dotfiles")
  2. Clone to local machine
  3. Add some file to dotfiles directory
  4. Make symlinks from dotfiles directory to its original path
  5. Continue process 3 and 4 ...

It is very painful if you do that by hand isn't it?

I wrote this script to make it easy the process 3 and 4.

Add new file to your dotfiles and make symbolic link from it (Backup)

Using this script,

dot add file1 ~/.dotfiles/path/to/file1

Done!

Unlike other tools to manage dotfiles, this script allows you to have arbitrary directory structure.

Clone the repository and make the symbolic links in a new environment (Restore)

Using this script,

dot clone; dot set

Done!

You can set all the symbolic links by a link list created by dot add command.

If the file already exists, this script asks you what to do next.