mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(dotbot): add Dotbot setup and configuration
https://github.com/anishathalye/dotbot
This commit is contained in:
1
.dotbot
Submodule
1
.dotbot
Submodule
Submodule .dotbot added at ac5793ceb5
8
.dotbot.conf.yaml
Normal file
8
.dotbot.conf.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
- defaults:
|
||||
link:
|
||||
relink: true
|
||||
|
||||
- clean: ['~']
|
||||
|
||||
- shell:
|
||||
- [git submodule update --init --recursive, Installing submodules]
|
||||
5
.gitmodules
vendored
Normal file
5
.gitmodules
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
[submodule ".dotbot"]
|
||||
ignore = dirty
|
||||
path = .dotbot
|
||||
url = https://github.com/anishathalye/dotbot
|
||||
|
||||
15
install
Executable file
15
install
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
CONFIG=".dotbot.conf.yaml"
|
||||
DOTBOT_DIR=".dotbot"
|
||||
|
||||
DOTBOT_BIN="bin/dotbot"
|
||||
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
cd "${BASEDIR}"
|
||||
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
|
||||
git submodule update --init --recursive "${DOTBOT_DIR}"
|
||||
|
||||
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
|
||||
Reference in New Issue
Block a user