From 807cc5dbadaaf7b0c1ae6bc1a45f4db8e376acb3 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 13 Feb 2024 04:16:05 +0300 Subject: [PATCH] Bootstrap : Remove many redundant bootstraps. --- .config/bash/module/Bootstrap.sh | 35 ++------------------------------ 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/.config/bash/module/Bootstrap.sh b/.config/bash/module/Bootstrap.sh index 73d3ac5..7b46d3c 100644 --- a/.config/bash/module/Bootstrap.sh +++ b/.config/bash/module/Bootstrap.sh @@ -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[@]}