1
0
Fork 0

Add new configs based on type of install

This commit is contained in:
Jeremy Kaplan 2016-06-11 21:14:51 -04:00
commit 059176fb04
7 changed files with 73 additions and 2 deletions

View file

@ -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

11
git/config-metagram Normal file
View file

@ -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

11
git/config-mit Normal file
View file

@ -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

View file

@ -1 +0,0 @@
dotbot/tools/git-submodule/install

18
install Executable file
View file

@ -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

16
metagram.conf.yaml Normal file
View file

@ -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

16
mit.conf.yaml Normal file
View file

@ -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