dotfilemgr
Build |
Coverage |
|
|
dotfilemgr
is a simple command for managing dotfiles in a git repo.
Using dotfilemgr
Adding a file with dotfilemgr
:
caj@development> ./dotfilemgr -a ~/.vimrc
Creating: /home/caj/.local/dotfiles/.vimrc
Adding a directory:
caj@development> ./dotfilemgr -a ~/.vim
Creating: /home/caj/.local/dotfiles/.vim/.netrwhist
Creating: /home/caj/.local/dotfiles/.vim/plugin/cat-status.vim
Removing a file from the dotfile hierarchy:
caj@development> ./dotfilemgr -r ~/.vimrc
Removing: /home/caj/.local/dotfiles/.vimrc
To sync and track changes in your dotfiles, you should create a git repo in the dotfile directory:
caj@development> cd ~/.local/dotfiles
caj@development> git init .
caj@development> git add .
caj@development> git commit -m 'original dotfile versions'
How it works
dotfilemgr
works by replicating your home directory inside of your dotfiles directory. For instance, if you add a file .config/awesome/rc.lua
, that file will be added into .local/dotfiles/.config/awesome/rc.lua
even if that directory doesn't exist.