/dotlink

[BROKEN] Config files linker (inspired by stow)

Primary LanguagePythonMIT LicenseMIT

dotlink

Stow analog which written in python

Installation

Currently project only avaible on github.

from source:

git clone https://github.com/gr3yknigh1/dotlink
pip install dotlink

Terminology

  • package - folder which structure represent where file's links must be placed in base directory

Usage

Print usage:

dotlink --help

usage: dotlink [-h] [-b BASE_DIR] [-p PACKAGE_BASE] [-n] [-R] [-f] package

positional arguments:
  package

options:
  -h, --help       show this help message and exit
  -b BASE_DIR      Package name
  -p PACKAGE_BASE  Path which used for package lookup
  -n               Instead of doing something, just print which actions will be executed
  -R               Remove package's links
  -f               Relink package If package already linked

Link package:

dotlink <package-name>

Remove package:

dotlink by default will be try to search for packages in ~/.dotfiles.

If you what to link directory: add .dotfolder file to this directory. dotlink will create symlink to parent directory of this file.

Override default package path:

dotlink -p <path-to-pkgs> <package-name>

Override default base path:

dotlink -b <path-to-base> <package-name>

For dry run add -n or --dry-run flag:

dotlink -n <package-name>