Added bootstrapping for shell
This commit is contained in:
parent
a29b4207fa
commit
e49b38a5ab
2 changed files with 40 additions and 0 deletions
20
.config/yadm/bootstrap
Normal file
20
.config/yadm/bootstrap
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
# Directory to look for bootstrap executables in
|
||||||
|
BOOTSTRAP_D="${BASH_SOURCE[0]}.d"
|
||||||
|
|
||||||
|
if [[ ! -d "$BOOTSTRAP_D" ]]; then
|
||||||
|
echo "Error: bootstrap directory '$BOOTSTRAP_D' not found" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
find "$BOOTSTRAP_D" -type f | sort | while IFS= read -r bootstrap; do
|
||||||
|
if [[ -x "$bootstrap" && ! "$bootstrap" =~ "##" && ! "$bootstrap" =~ "~$" ]]; then
|
||||||
|
if ! "$bootstrap"; then
|
||||||
|
echo "Error: bootstrap '$bootstrap' failed" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
20
.config/yadm/bootstrap.d/shell
Normal file
20
.config/yadm/bootstrap.d/shell
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ ! -r "$HOME/.local/share/blesh/ble.sh" ]]; then
|
||||||
|
echo "+ ble.sh"
|
||||||
|
git clone --recursive --depth 1 --shallow-submodules https://github.com/akinomyoga/ble.sh.github
|
||||||
|
make -C ble.sh install PREFIX="$HOME/.local"
|
||||||
|
rm -rf ble.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -d "$HOME/.tmux/plugins" ]]; then
|
||||||
|
echo "+ TMux Plugin Manager"
|
||||||
|
mkdir -p "$HOME/.tmux/plugins"
|
||||||
|
git clone https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -d "$HOME/.config/nvim" ]]; then
|
||||||
|
echo "+ NvChad"
|
||||||
|
git clone https://github.com/NvChad/starter ~/.config/nvim
|
||||||
|
echo "! Run :MasonInstallAll while running nvim to finish NvChat install"
|
||||||
|
fi
|
Loading…
Reference in a new issue