mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-02 08:48:02 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 66739fa765 | |||
| ff01a27b3c |
@@ -1,33 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
CONFIG="install.conf.yaml"
|
|
||||||
DOTBOT_DIR="dotbot"
|
|
||||||
|
|
||||||
DOTBOT_BIN="bin/dotbot"
|
|
||||||
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
||||||
DOTBOT_HOST="$(hostname -s)" || ''
|
|
||||||
DOTBOT_BIN_PATH="${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}"
|
|
||||||
|
|
||||||
cd "$BASEDIR"
|
|
||||||
git submodule sync --quiet --recursive
|
|
||||||
git submodule update --init --recursive
|
|
||||||
|
|
||||||
"${DOTBOT_BIN_PATH}" \
|
|
||||||
-d "${BASEDIR}" \
|
|
||||||
--plugin-dir=dotbot-include \
|
|
||||||
-c "${CONFIG}" \
|
|
||||||
"${@}"
|
|
||||||
|
|
||||||
if [ "${DOTBOT_HOST}" != "" ]; then
|
|
||||||
DOTBOT_HOST_CONFIG="${BASEDIR}/hosts/${DOTBOT_HOST}/${CONFIG}"
|
|
||||||
echo "-> Trying if host config can be found: ${DOTBOT_HOST_CONFIG}"
|
|
||||||
[ -r "$DOTBOT_HOST_CONFIG" ] && [ -f "$DOTBOT_HOST_CONFIG" ] \
|
|
||||||
&& echo "(!) Found $DOTBOT_HOST_CONFIG" \
|
|
||||||
&& "$DOTBOT_BIN_PATH" \
|
|
||||||
-d "$BASEDIR" \
|
|
||||||
--plugin-dir=dotbot-include \
|
|
||||||
-c "$DOTBOT_HOST_CONFIG" \
|
|
||||||
"${@}"
|
|
||||||
fi
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
- include: 'hosts/defaults.yaml'
|
- include: "hosts/defaults.yaml"
|
||||||
- clean:
|
- clean:
|
||||||
~/:
|
~/:
|
||||||
~/.config:
|
~/.config:
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
~/.cache:
|
~/.cache:
|
||||||
~/.cache/git:
|
~/.cache/git:
|
||||||
~/.config:
|
~/.config:
|
||||||
|
~/.config/cheat/cheatsheets/personal:
|
||||||
~/.local:
|
~/.local:
|
||||||
~/.local/run:
|
~/.local/run:
|
||||||
~/.local/share:
|
~/.local/share:
|
||||||
|
|||||||
Reference in New Issue
Block a user