2023-12-07 04:02:47 +03:00
|
|
|
# Install Cargo/Rust.
|
2023-12-07 01:44:42 +03:00
|
|
|
function bootstrap_rust() {
|
2023-12-17 19:44:49 +03:00
|
|
|
curl https://sh.rustup.rs -sSf | sh
|
2023-12-05 21:50:45 +03:00
|
|
|
rustup component add rust-analyzer
|
2023-08-08 16:24:15 +03:00
|
|
|
}
|
|
|
|
|
2023-12-07 04:02:47 +03:00
|
|
|
# Install TeXLive.
|
2023-12-07 01:44:42 +03:00
|
|
|
function bootstrap_texlive() {
|
2023-12-05 21:50:45 +03:00
|
|
|
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
|
2023-08-08 16:24:15 +03:00
|
|
|
}
|
|
|
|
|
2023-12-07 04:02:47 +03:00
|
|
|
# Install grub theme.
|
2023-12-07 01:44:42 +03:00
|
|
|
function bootstrap_grub() {
|
2023-12-05 21:50:45 +03:00
|
|
|
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
|
2023-08-08 16:24:15 +03:00
|
|
|
}
|
2023-10-23 18:54:22 +03:00
|
|
|
|
2023-12-07 04:02:47 +03:00
|
|
|
# Install ffmpeg.
|
2023-12-07 01:44:42 +03:00
|
|
|
function bootstrap_ffmpeg() {
|
2023-12-05 21:50:45 +03:00
|
|
|
flatpak install org.kde.kdenlive
|
2023-10-23 18:54:22 +03:00
|
|
|
}
|
2023-12-17 19:44:49 +03:00
|
|
|
|
|
|
|
# Install Editorconfig file (with tabs) in current directory.
|
|
|
|
function bootstrap_editorconfig() {
|
|
|
|
echo "\
|
|
|
|
[*]
|
|
|
|
end_of_line = lf
|
|
|
|
charset = utf-8
|
|
|
|
indent_style = tab
|
|
|
|
insert_final_newline = true
|
|
|
|
trim_trailing_whitespace = true
|
|
|
|
" > .editorconfig
|
|
|
|
}
|
|
|
|
|
|
|
|
# Install Editorconfig file (with specified spaces, 8 by default) in current directory.
|
|
|
|
# Usage: bootstrap_editorconfig_space [AMOUNT]
|
|
|
|
function bootstrap_editorconfig_space() {
|
|
|
|
local spaces="${1}"
|
|
|
|
[[ "${spaces}" = "" ]] && spaces=8
|
|
|
|
|
|
|
|
echo "\
|
|
|
|
[*]
|
|
|
|
end_of_line = lf
|
|
|
|
charset = utf-8
|
|
|
|
indent_style = space
|
|
|
|
indent_size = ${spaces}
|
|
|
|
insert_final_newline = true
|
|
|
|
trim_trailing_whitespace = true
|
|
|
|
" > .editorconfig
|
|
|
|
}
|
|
|
|
|
2024-01-25 00:49:29 +03:00
|
|
|
function bootstrap_flathub() {
|
|
|
|
flatpak remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
|
|
}
|