diff --git a/install.conf.yaml b/default.conf.yaml similarity index 94% rename from install.conf.yaml rename to default.conf.yaml index d9b2214..749eb76 100644 --- a/install.conf.yaml +++ b/default.conf.yaml @@ -9,7 +9,7 @@ ~/.zshenv: zsh/.zshenv ~/.zprofile: zsh/.zprofile ~/.hgrc: hg/.hgrc - ~/.config/git: git + ~/.config/git/config: git/config-gmail ~/.vim: vim/ ~/.vimrc: vim/.vimrc ~/.mbsyncrc: isync/.mbsyncrc diff --git a/git/config b/git/config-gmail similarity index 100% rename from git/config rename to git/config-gmail diff --git a/git/config-metagram b/git/config-metagram new file mode 100644 index 0000000..e5f6461 --- /dev/null +++ b/git/config-metagram @@ -0,0 +1,11 @@ +[user] + name = Jeremy Kaplan + email = jdkaplan@metagram.net +[color] + ui = true +[push] + default = simple +[alias] + lg = log --oneline --graph --decorate +[credential] + helper = cache diff --git a/git/config-mit b/git/config-mit new file mode 100644 index 0000000..fd0eb51 --- /dev/null +++ b/git/config-mit @@ -0,0 +1,11 @@ +[user] + name = Jeremy Kaplan + email = jdkaplan@mit.edu +[color] + ui = true +[push] + default = simple +[alias] + lg = log --oneline --graph --decorate +[credential] + helper = cache diff --git a/install b/install deleted file mode 120000 index de01873..0000000 --- a/install +++ /dev/null @@ -1 +0,0 @@ -dotbot/tools/git-submodule/install \ No newline at end of file diff --git a/install b/install new file mode 100755 index 0000000..a3d9897 --- /dev/null +++ b/install @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -e + +DEFAULT_CONFIG_PREFIX="default" +CONFIG_SUFFIX=".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}" + +for conf in ${DEFAULT_CONFIG_PREFIX} ${@}; do + "${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${conf}${CONFIG_SUFFIX}" +done diff --git a/metagram.conf.yaml b/metagram.conf.yaml new file mode 100644 index 0000000..a892699 --- /dev/null +++ b/metagram.conf.yaml @@ -0,0 +1,16 @@ +- clean: ['~', '~/.config'] + +- link: + ~/.emacs.d: emacs/ + ~/.config/zsh: zsh/ + ~/.zshrc: zsh/.zshrc + ~/.zshenv: zsh/.zshenv + ~/.zprofile: zsh/.zprofile + ~/.hgrc: hg/.hgrc + ~/.config/git/config: git/config-metagram + ~/.vim: vim/ + ~/.vimrc: vim/.vimrc + ~/.pentadactylrc: pentadactyl/.pentadactylrc + ~/.tmux.conf: tmux/.tmux.conf + ~/.config/nvim: neovim/ + ~/.xonshrc: xonsh/.xonshrc diff --git a/mit.conf.yaml b/mit.conf.yaml new file mode 100644 index 0000000..9577be2 --- /dev/null +++ b/mit.conf.yaml @@ -0,0 +1,16 @@ +- clean: ['~', '~/.config'] + +- link: + ~/.emacs.d: emacs/ + ~/.config/zsh: zsh/ + ~/.zshrc: zsh/.zshrc + ~/.zshenv: zsh/.zshenv + ~/.zprofile: zsh/.zprofile + ~/.hgrc: hg/.hgrc + ~/.config/git/config: git/config-mit + ~/.vim: vim/ + ~/.vimrc: vim/.vimrc + ~/.pentadactylrc: pentadactyl/.pentadactylrc + ~/.tmux.conf: tmux/.tmux.conf + ~/.config/nvim: neovim/ + ~/.xonshrc: xonsh/.xonshrc