Move dotbot related stuff into meta/
This commit is contained in:
1
meta/dotbot
Submodule
1
meta/dotbot
Submodule
Submodule meta/dotbot added at 5294594f5a
18
meta/install
Executable file
18
meta/install
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
CONFIG="install.conf.yaml"
|
||||
DOTBOT_DIR="dotbot"
|
||||
DOTBOT_BIN="bin/dotbot"
|
||||
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
INSTALL_DIR="$(pwd)"
|
||||
BASEDIR="$(git rev-parse --show-toplevel)"
|
||||
|
||||
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
|
||||
git submodule update --init --recursive "${DOTBOT_DIR}"
|
||||
|
||||
"${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
|
||||
|
||||
! command -v zsh >/dev/null 2>&1 || exec zsh
|
||||
43
meta/install.conf.yaml
Normal file
43
meta/install.conf.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
- shell:
|
||||
-
|
||||
command: git submodule update --init --recursive --jobs 8 --depth 1 2>&1 | grep "Cloning into"
|
||||
description: Pulling all submodules
|
||||
stdout: true
|
||||
stderr: true
|
||||
-
|
||||
command: /bin/sh -c 'tmpd="$(mktemp -d)"; for file in .config/*; do [ ! -e "$HOME/$file" ] || mv "$HOME/$file" "$tmpd"; done; rmdir "$tmpd" 2>/dev/null && echo "Nothing to archive" || { name="existing-$(date +"%s").tar.gz"; tar czvf "$name" "$tmpd" && rm -rf "$tmpd" && echo "$name created"; }'
|
||||
description: Archiving all files in ~/.config before overwriting them
|
||||
stdout: true
|
||||
stderr: true
|
||||
quiet: true
|
||||
-
|
||||
command: .config/zsh/plugins/fzf/install --bin
|
||||
description: Pulling fzf binary
|
||||
stdout: true
|
||||
stderr: true
|
||||
-
|
||||
command: /bin/sh -c '! command -v make || { cd .config/zsh/plugins/stderred && make; }'
|
||||
description: Building stderred
|
||||
stdout: true
|
||||
stderr: true
|
||||
- link:
|
||||
~/.Xmodmap:
|
||||
path: .Xmodmap
|
||||
~/.Xresources:
|
||||
path: .Xresources
|
||||
~/.zshenv:
|
||||
path: .zshenv
|
||||
~/.config/:
|
||||
create: true
|
||||
glob: true
|
||||
path: .config/*
|
||||
~/.local/bin/:
|
||||
create: true
|
||||
glob: true
|
||||
path: .local/bin/*
|
||||
~/.local/share/man/man1/fzf.1:
|
||||
create: true
|
||||
path: .config/zsh/plugins/fzf/man/man1/fzf.1
|
||||
~/.local/share/nvim/site/pack:
|
||||
create: true
|
||||
path: .config/vim/pack
|
||||
Reference in New Issue
Block a user