From b8304c06af391ebbae1650f8898049067757ec5f Mon Sep 17 00:00:00 2001 From: Roman Volovoy Date: Mon, 28 Sep 2026 12:45:07 +0200 Subject: [PATCH] install scripts --- install-scripts/fonts.sh | 15 +++++++++++++++ install-scripts/stow.sh | 25 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100755 install-scripts/fonts.sh create mode 100755 install-scripts/stow.sh diff --git a/install-scripts/fonts.sh b/install-scripts/fonts.sh new file mode 100755 index 0000000..449f7cb --- /dev/null +++ b/install-scripts/fonts.sh @@ -0,0 +1,15 @@ +#!/bin/bash +fonts_dir="$HOME/.local/share/fonts" +mkdir -p "$fonts_dir" + +# List of fonts to install +declare -a fonts=(FiraCode JetBrainsMono Hack) + +for font in "${fonts[@]}"; do + echo "Installing $font..." + wget "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${font}.zip" -P "/tmp/" + unzip -o "/tmp/${font}.zip" -d "$fonts_dir" + rm "/tmp/${font}.zip" +done + +fc-cache -fv diff --git a/install-scripts/stow.sh b/install-scripts/stow.sh new file mode 100755 index 0000000..ba81208 --- /dev/null +++ b/install-scripts/stow.sh @@ -0,0 +1,25 @@ +#!/bin/bash +STOW_VERSION="${STOW_VERSION:-2.4.1}" + +# Create temp build directory +BUILD_DIR=$(mktemp -d) +trap 'rm -rf "$BUILD_DIR"' EXIT + +# 1. Download and extract +cd "$BUILD_DIR" +curl -O "http://ftp.gnu.org/gnu/stow/stow-${STOW_VERSION}.tar.gz" +tar xf "stow-${STOW_VERSION}.tar.gz" +cd "stow-${STOW_VERSION}" + +# 2. Configure installation to user directory +./configure --prefix="$HOME/.local" + +# 3. Compile and install (no sudo needed) +make +make install + +# 4. Add to PATH (add this line to ~/.bashrc or ~/.zshrc) +export PATH="$HOME/.local/bin:$PATH" + +# 5. Verify installation +stow --version