diff --git a/.gitmodules b/.gitmodules index 001fb0a..027f15b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "vim/vim/bundle/vim-vinegar"] path = vim/vim/bundle/vim-vinegar url = https://github.com/tpope/vim-vinegar +[submodule "dotbot"] + path = dotbot + url = https://github.com/anishathalye/dotbot diff --git a/README.md b/README.md index 1d58c27..c860903 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,33 @@ #Dot Files -Configuration files (often called dot-files because they start with a ".") for the applications I use on a regular basis. +Configuration files (often called dot-files because they start with a ".") for +the applications I use on a regular basis. + +No special pre-requisites, that I'm aware of. The `install` script requires +Python. Of course, the configuration files require the related applications +to be applicable. + +More details about specific application configurations can be found in their +respective directories. + +##dotbot +To assist with organization, I utilize +[dotbot](https://github.com/anishathalye/dotbot) for automation. + +##Installation +To integrate *all* dotfiles in this repo: + +> 1. git clone git@github.com:VagabondAzulien/dotfiles.git +> +> 2. cd dotfiles +> +> 3. ./install + +##Applications Configured +* Vim [ vim/vim/ => ~/.vim ][ vim/vimrc => ~/.vimrc ] +* Git [ git/gitconfig => ~/.gitconfig ] ##To-Do -* [ ] Implement [dotbot](https://github.com/anishathalye/dotbot) for automation. * [ ] irssi config files * [ ] shell config files @@ -24,4 +48,3 @@ license text of which can be found below. > TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION > > 0. You just DO WHAT THE FUCK YOU WANT TO. - diff --git a/dotbot b/dotbot new file mode 160000 index 0000000..db83644 --- /dev/null +++ b/dotbot @@ -0,0 +1 @@ +Subproject commit db8364490da392b4225844ddfc32e5fa69aa3821 diff --git a/git/.gitconfig b/git/gitconfig similarity index 100% rename from git/.gitconfig rename to git/gitconfig diff --git a/install b/install new file mode 100755 index 0000000..b1baa33 --- /dev/null +++ b/install @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -e + +CONFIG="install.conf.yaml" +DOTBOT_DIR="dotbot" + +DOTBOT_BIN="bin/dotbot" +BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +cd "${BASEDIR}" +git submodule update --init --recursive "${DOTBOT_DIR}" + +"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}" diff --git a/install.conf.yaml b/install.conf.yaml new file mode 100644 index 0000000..c67b594 --- /dev/null +++ b/install.conf.yaml @@ -0,0 +1,10 @@ +- clean: ['~'] + +- link: + ~/.dotfiles: '' + ~/.vim: vim/vim/ + ~/.vimrc: vim/vimrc + ~/.gitconfig: git/gitconfig + +- shell: + - [git submodule update --init --recursive, Installing submodules]