https://github.com/dwoz/microdot-shell
Micro 'dot files' management
https://github.com/dwoz/microdot-shell
bash bashrc dotfiles linux linux-shell productivity shell unix unix-shell
Last synced: about 2 months ago
JSON representation
Micro 'dot files' management
- Host: GitHub
- URL: https://github.com/dwoz/microdot-shell
- Owner: dwoz
- License: mit
- Created: 2017-07-22T23:05:40.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-08T23:44:33.000Z (almost 9 years ago)
- Last Synced: 2025-02-27T07:19:29.286Z (over 1 year ago)
- Topics: bash, bashrc, dotfiles, linux, linux-shell, productivity, shell, unix, unix-shell
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
What is microdot?
Microdot is a shell function which wraps git to provide a simple tool for
managing your 'dot files'.
The microdot function is a thin wrapper around git in the form of a bash
function. The purpose is to provide dot file history, backup and syncinc to
multiple places. Git already does a great job of stroing history, backing
things up and syncing changes to multiple places. So microdot leverages the
power of git. The mocrodot function provides a simplified workflow to managing
a set of files in your home directory under git without turning your entire
home directory into a git repository.
How to I use it?
- Download or checkout this repository to obtain microdot.sh
- Source microdot.sh in your .bashrc and alias the microdot function.
Add the following to ~/.bashrc:
source microdot.sh
alias md='microdot'
- Source your .bashrc to make the md command available
$ source ~/.bashrc
- Initialize a new dotfiles data git repo
$ md init
$ md remote add origin git@github.com:mygithub/mydotfiles.git
$ md commit ~/.bashrc -m 'Adding my .bashrc file'
$ md push origin master
- Use an existing dotfiles data git repo
$ md clone git@github.com:mygithub/mydotfiles.git