Skip to content

Instantly share code, notes, and snippets.

View spencershepard's full-sized avatar

Spencer Shepard spencershepard

View GitHub Profile
@spencershepard
spencershepard / install-zsh.sh
Last active April 26, 2025 16:30
Install zshell and auto-suggestions (Ubuntu)
#!/bin/bash
ZSHRC_FILE="$HOME/.zshrc"
echo "Installing packages..."
apt update && apt install -y zsh zsh-autosuggestions zsh-syntax-highlighting
# Check if the .zshrc file exists
if [[ ! -f "$ZSHRC_FILE" ]]; then
echo "$ZSHRC_FILE not found. Creating..."
touch "$ZSHRC_FILE"
@spencershepard
spencershepard / batchinstaller.cmd
Created March 28, 2025 19:04
(Windows) Automatically run all installers in a folder with elevated permissions
Echo OFF
REM The next command sets the working directory to the directory of the script (ie instead of C:/Windows/System32 when run as admin)
cd /d "%~dp0"
powershell -NoProfile -ExecutionPolicy Bypass -File "batchinstaller.ps1"
PAUSE > NUL