mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 03:04:06 +00:00
Chore(tools): Moved dotbot under tools
This commit is contained in:
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -1,16 +1,16 @@
|
||||
# vim: set expandtab:
|
||||
[submodule "dotbot"]
|
||||
path = dotbot
|
||||
path = tools/dotbot
|
||||
url = https://github.com/anishathalye/dotbot.git
|
||||
ignore = dirty
|
||||
|
||||
[submodule "dotbot-brew"]
|
||||
path = dotbot-brew
|
||||
path = tools/dotbot-brew
|
||||
url = https://github.com/wren/dotbot-brew.git
|
||||
ignore = dirty
|
||||
|
||||
[submodule "dotbot-include"]
|
||||
path = dotbot-include
|
||||
path = tools/dotbot-include
|
||||
url = https://gitlab.com/gnfzdz/dotbot-include.git
|
||||
ignore = dirty
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
git submodule add --name dotbot-brew -f https://github.com/wren/dotbot-brew.git dotbot-brew
|
||||
git submodule add --name dotbot-include -f https://gitlab.com/gnfzdz/dotbot-include.git dotbot-include
|
||||
git submodule add --name dotbot -f https://github.com/anishathalye/dotbot.git tools/dotbot
|
||||
git submodule add --name dotbot-brew -f https://github.com/wren/dotbot-brew.git tools/dotbot-brew
|
||||
git submodule add --name dotbot-include -f https://gitlab.com/gnfzdz/dotbot-include.git tools/dotbot-include
|
||||
git submodule add --name cheat-community -f https://github.com/cheat/cheatsheets.git config/cheat/cheatsheets/community
|
||||
git submodule add --name tmux/tpm -f https://github.com/tmux-plugins/tpm.git config/tmux/plugins/tpm
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- include: 'hosts/defaults.yaml'
|
||||
- include: "tools/dotbot-defaults.yaml"
|
||||
- shell:
|
||||
- echo "Configuring air"
|
||||
- brewfile:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- include: 'hosts/defaults.yaml'
|
||||
- include: "tools/dotbot-defaults.yaml"
|
||||
- shell:
|
||||
- echo "Configuring lakka"
|
||||
- link:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- include: 'hosts/defaults.yaml'
|
||||
- include: "tools/dotbot-defaults.yaml"
|
||||
- shell:
|
||||
- echo "Configuring tunkki"
|
||||
- link:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- include: 'hosts/defaults.yaml'
|
||||
- include: "tools/dotbot-defaults.yaml"
|
||||
- shell:
|
||||
- echo "Configuring v"
|
||||
- brewfile:
|
||||
|
||||
12
install
12
install
@@ -3,12 +3,12 @@
|
||||
set -e
|
||||
|
||||
CONFIG="install.conf.yaml"
|
||||
DOTBOT_DIR="dotbot"
|
||||
DOTBOT_DIR="tools/dotbot"
|
||||
|
||||
DOTBOT_BIN="bin/dotbot"
|
||||
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
DOTBOT_BIN_PATH="${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}"
|
||||
DOTBOT_HOST="$(hostname -s)" || ''
|
||||
DOTBOT_HOST="$(hostname -s)"
|
||||
|
||||
cd "$BASEDIR"
|
||||
git submodule sync --quiet --recursive
|
||||
@@ -16,8 +16,8 @@ git submodule update --init --recursive
|
||||
|
||||
"${DOTBOT_BIN_PATH}" \
|
||||
-d "${BASEDIR}" \
|
||||
--plugin-dir=dotbot-brew \
|
||||
--plugin-dir=dotbot-include \
|
||||
--plugin-dir=tools/dotbot-brew \
|
||||
--plugin-dir=tools/dotbot-include \
|
||||
-c "${CONFIG}" \
|
||||
"${@}"
|
||||
|
||||
@@ -28,8 +28,8 @@ if [ "${DOTBOT_HOST}" != "" ]; then
|
||||
&& echo "(!) Found $DOTBOT_HOST_CONFIG" \
|
||||
&& "$DOTBOT_BIN_PATH" \
|
||||
-d "$BASEDIR" \
|
||||
--plugin-dir=dotbot-brew \
|
||||
--plugin-dir=dotbot-include \
|
||||
--plugin-dir=tools/dotbot-brew \
|
||||
--plugin-dir=tools/dotbot-include \
|
||||
-c "$DOTBOT_HOST_CONFIG" \
|
||||
"${@}"
|
||||
fi
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- include: "hosts/defaults.yaml"
|
||||
- include: "tools/dotbot-defaults.yaml"
|
||||
- clean:
|
||||
~/:
|
||||
~/.config:
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
link:
|
||||
create: true
|
||||
relink: true
|
||||
exclude: ["*.md", "*renovate*"]
|
||||
exclude: [ "*.md", "*renovate*", "LICENSE" ]
|
||||
shell:
|
||||
stdout: true
|
||||
Reference in New Issue
Block a user