Simple utility scripts form managing links and links to dotfiles in user's home directory. Written in python because that's usually amongst few things available on a freshly installed desktop Linux distribution.
WARNING: Won't work on Windows.
dotfile-manager
- manages dotfile links to user's home directory.smartlink
- creates symbolic link only if it's not already linked and backups any existing file of the same name as new link.
Python script is compiled into a single file with a python shebang for easier distribution. stickytape
module is used to perform this compilation.
To install all the requirements:
pip install -r requirements.txt
Requirements can be updated with:
pip freeze > requirements.txt
Project management scripts assume the following convetions:
env
directory in project root contains project's virtualenvbuld
directory in project root is automatically created and removed when building the projecttest-temp
directory in project root is automatically recreated whenever a test script is run
build.sh
- builds manager into a single python script you can put into your dotfiles projecttest.sh
- runsrc/dotfile-manager.py
with given CLI argumentstestlink.sh
- runsrc/smartlink.py
with given CLI argumentsclean.sh
- remove build and test directories and related artifacts
Run your script of choice with -h
argument to get help.