start using dotbot

This commit is contained in:
Nils Norman Haukås 2021-12-28 22:01:24 +01:00
parent 544fea4976
commit 5d4d6e1a68
5 changed files with 32 additions and 1 deletions

4
.gitmodules vendored Normal file
View file

@ -0,0 +1,4 @@
[submodule "dotbot"]
path = dotbot
url = https://github.com/anishathalye/dotbot
ignore = dirty

View file

@ -2,6 +2,17 @@
Welcome to my metaphorical bookshelf of scripts and configurations that I piece together over time. In other words it's my dotfiles setup. [Learn more about what dotfiles are here](http://iamnotmyself.com/2020/11/10/your-terminal-and-you-dotfiles/).
## Installation
1. `git clone` this project.
1. Run `./install` to install the dotfiles (configured in `install.conf.yaml`).
See also:
- [anishathalye/dotbot](https://github.com/anishathalye/dotbot)
## License
The contents within this repo is released under the [NPLv5+ license](LICENSE.txt).
The `dotbot/` folder is licensed under the [MIT license](dotbot/LICENSE.md).
Everything else within this repo is released under the [NPLv5+ license](LICENSE.txt).

1
dotbot Submodule

@ -0,0 +1 @@
Subproject commit ac5793ceb58863d23427d21597634d3dcf66f9ac

15
install Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e
CONFIG="install.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}" "${@}"

0
install.conf.yaml Normal file
View file