AutoYADM commit: 2025-03-15 01:15:06
This commit is contained in:
parent
af200c2a72
commit
c067097077
4 changed files with 48 additions and 0 deletions
29
.config/yadm/bootstrap-in-dir.sh
Executable file
29
.config/yadm/bootstrap-in-dir.sh
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Save this file as ~/.config/yadm/bootstrap and make it executable. It will
|
||||||
|
# execute all executable files (excluding templates and editor backups) in the
|
||||||
|
# ~/.config/yadm/bootstrap.d directory when run.
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
declare -a bootstraps
|
||||||
|
while IFS= read -r bootstrap; do
|
||||||
|
if [[ -x "$bootstrap" && ! "$bootstrap" =~ "##" && ! "$bootstrap" =~ ~$ ]]; then
|
||||||
|
bootstraps+=("$bootstrap")
|
||||||
|
fi
|
||||||
|
done < <(find -L "$BOOTSTRAP_D" -type f | sort)
|
||||||
|
|
||||||
|
for bootstrap in "${bootstraps[@]}"; do
|
||||||
|
if ! "$bootstrap"; then
|
||||||
|
echo "Error: bootstrap '$bootstrap' failed" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
17
.config/yadm/bootstrap.d/strap.sh
Executable file
17
.config/yadm/bootstrap.d/strap.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/env bash
|
||||||
|
|
||||||
|
# install paru
|
||||||
|
|
||||||
|
sudo pacman -S --needed base-devel
|
||||||
|
git clone https://aur.archlinux.org/paru.git
|
||||||
|
cd paru || exit 1
|
||||||
|
makepkg -si
|
||||||
|
cd .. || exit 1
|
||||||
|
rm -r paru
|
||||||
|
|
||||||
|
# Sync, update
|
||||||
|
paru -Syyu
|
||||||
|
paru --gendb
|
||||||
|
paru -S zsh
|
||||||
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
|
paru -S go rustup aerc isync cyrus-ssl-xoauth2 notmuch w3m ugrep w3m aerc bat btop cava clipcat waybar-cava direnv dunst eza fish foot fuzzel harper helix-git lazygit niri television tmux vesktop-bin zathura starship
|
0
.config/yadm/encrypt
Normal file
0
.config/yadm/encrypt
Normal file
|
@ -1,3 +1,5 @@
|
||||||
zsh -ic 'lg;exit'
|
zsh -ic 'lg;exit'
|
||||||
zsh -ic 'chmod +x get_git_provider_url.fish;exit'
|
zsh -ic 'chmod +x get_git_provider_url.fish;exit'
|
||||||
zsh -ic 'mksh abook;exit'
|
zsh -ic 'mksh abook;exit'
|
||||||
|
zsh -ic 'mksh bootstrap-in-dir;exit'
|
||||||
|
zsh -ic 'mksh strap;exit'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue