0.1.0 • Published 9 years ago
cdri v0.1.0
Chris' Dotfile Repository Installer
First-Time Setup
Create a directory with the configuration files you wish to install.
$ mkdir dotfiles
$ cd dotfiles
$ cp ~/.bashrc ./
$ cp ~/.vimrc ./
$ cp ~/.npmrc ./Optional: initialize it as a git repository.
$ git init
$ git add .
$ git commit -m 'initial commit'Initialize the repository as an npm package, with a package.json file.
$ npm initInstall the cdri package using npm, saving it as a dependency.
$ npm install --save cdriRun the script.
$ npm run cdriOptional: if you're using git, create a .gitignore file including the directory node_modules. Commit the rest of the repository.
$ echo "node_modules" > .gitignore
$ git add .
$ git commitSubsequent Installation
After you've completed the initial setup, you can now reproduce your setup on additional systems by cloning your dotfiles repo.
$ git clone https://github.com/username/dotfiles.git
$ cd dotfiles
$ npm install
$ npm run cdriTo-do
- Check if inventory.json exists
- Verify files in inventory.json exist
0.1.0
9 years ago