Watch
1
0
Fork
You've already forked dotfiles
0

Force install to require configs explicitly

This commit is contained in:
Jeremy Kaplan 2016-06-11 21:20:17 -04:00
commit 8f28b951a7
2 changed files with 1 additions and 2 deletions

26
gmail.conf.yaml Normal file
View file

@ -0,0 +1,26 @@
- clean: ['~', '~/.config']
- link:
~/.emacs.d: emacs/
~/.config/i3: i3/
~/.config/i3status: i3status/
~/.config/zsh: zsh/
~/.zshrc: zsh/.zshrc
~/.zshenv: zsh/.zshenv
~/.zprofile: zsh/.zprofile
~/.hgrc: hg/.hgrc
~/.config/git/config: git/config-gmail
~/.vim: vim/
~/.vimrc: vim/.vimrc
~/.mbsyncrc: isync/.mbsyncrc
~/.pentadactylrc: pentadactyl/.pentadactylrc
~/.Xresources: X/.Xresources
~/.Xdefaults: X/.Xdefaults
~/.urlview: urlview/.urlview
~/.config/user-dirs.dirs: etc/user-dirs.dirs
~/.tmux.conf: tmux/.tmux.conf
~/.config/bspwm: bspwm/
~/.config/sxhkd: sxhkd/
~/.config/panel: panel/
~/.config/nvim: neovim/
~/.xonshrc: xonsh/.xonshrc

View file

@ -2,7 +2,6 @@
set -e set -e
DEFAULT_CONFIG_PREFIX="default"
CONFIG_SUFFIX=".conf.yaml" CONFIG_SUFFIX=".conf.yaml"
DOTBOT_DIR="dotbot" DOTBOT_DIR="dotbot"
@ -13,6 +12,6 @@ BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${BASEDIR}" cd "${BASEDIR}"
git submodule update --init --recursive "${DOTBOT_DIR}" git submodule update --init --recursive "${DOTBOT_DIR}"
for conf in ${DEFAULT_CONFIG_PREFIX} ${@}; do for conf in ${@}; do
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${conf}${CONFIG_SUFFIX}" "${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${conf}${CONFIG_SUFFIX}"
done done