Added bootstrapping for shell

This commit is contained in:
Eric Renfro 2024-03-13 17:26:09 -04:00
parent a29b4207fa
commit e49b38a5ab
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM
2 changed files with 40 additions and 0 deletions

20
.config/yadm/bootstrap Normal file
View 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

View 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