Public Access
install scripts
This commit is contained in:
Executable
+15
@@ -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
|
||||
Executable
+25
@@ -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
|
||||
Reference in New Issue
Block a user