dotfilemgr

command module
v0.0.0-...-0900917 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

README

dotfilemgr

Build Coverage
Build Status Coverage Status

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL