Bootstrap : Remove many redundant bootstraps.

This commit is contained in:
Dmitry Voronin 2024-02-13 04:16:05 +03:00
parent 4c3bc70373
commit 807cc5dbad

View file

@ -1,31 +1,3 @@
# Install Cargo/Rust.
function bootstrap_rust() {
curl https://sh.rustup.rs -sSf | sh
rustup component add rust-analyzer
}
# Install TeXLive.
function bootstrap_texlive() {
cd /tmp
wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
tar -xf install-tl-unx.tar.gz
rm install-tl-unx.tar.gz
cd ./install-tl-*
./install-tl
}
# Install grub theme.
function bootstrap_grub() {
wget -O- https://github.com/shvchk/fallout-grub-theme/raw/master/install.sh | bash
echo 'GRUB_HIDDEN_TIMEOUT=' >> /etc/default/grub
grub2-mkconfig -o /etc/grub2.cfg
}
# Install ffmpeg.
function bootstrap_ffmpeg() {
flatpak install org.kde.kdenlive
}
# Install Editorconfig file (with tabs) in current directory.
function bootstrap_editorconfig() {
echo "\
@ -62,13 +34,10 @@ function bootstrap_flatpak() {
# Reinstall apps.
local IFS=$'\n'
local targets="$(cat ~/.config/linux/Flatpak.txt)"
local targets="$(cat ~/.config/linux/Flatpak.txt | cut -f2)"
process() {
local packet="${target#*$'\t'}"
packet="${packet%%$'\t'*}"
flatpak install "${packet}"
flatpak install --system "${target}"
}
_iterate_targets process ${targets[@]}