A collection of useful scripts I've created, or make use of.
- git-config (PowerShell) - Automated Git configuration with productivity-focused defaults
. .\git-config\git-config.ps1
setup-git
- ForceConnectWiFi (PowerShell) - WiFi connection manager with retry capabilities
.\ForceConnectWiFi\ForceConnectWiFi.ps1 -networkName "Your_Network_Name" -maxRetries 5 -retryIntervalSeconds 10
- plenty-of-info (Oh My Posh Theme) - Unintrusive theme with plenty of system, environment information
oh-my-posh init pwsh --config 'path/to/plenty-of-info.omp.json' | Invoke-Expression
- profile.ps1 (PowerShell) - Custom PowerShell profile script with environment handling, autoupdate mechanism, and additional features. See the README for the full list of features and how to install.
# Check for required environment variables
if (-not $env:USERPROFILE) {
Write-Host "USERPROFILE environment variable is not set. Skipping profile import."
return
}
# Define the path to the repository's profile script here
$repoPath = "$env:USERPROFILE\path\to\scripts\"
# Check if the repository profile script exists
if (Test-Path $repoPath) {
$profilePath = "$repoPath\powershell-profile\profile.ps1"
Write-Host "Importing profile from $profilePath"
. $profilePath
} else {
Write-Host "Repository profile script not found at $repoPath"
}
- packages.config (Chocolatey) - List of installed Chocolatey packages
choco install packages.config
- vlc-autohotkey (AutoHotkey) - Quick speed controls for VLC
# Run the AHK script directly by double-clicking or:
start "VLC Speed Controls" ".\autohotkey\vlc-speed-controls.ahk"
- Clone this repository:
git clone https://github.com/ScottWilliamAnderson/scripts.git
- Navigate to desired script folder:
cd scripts/<script-folder>
- Check individual README files for detailed usage instructions
- Fork the repository
- Create your feature branch
- Follow the contribution guidelines
- Submit a pull request
- Windows 10/11
- PowerShell 5.1+
- Git 2.0+
- [Optional] Chocolatey package manager
- [Optional] Oh My Posh
- [Optional] GitHub CLI
- [Optional] AutoHotkey
MIT © Scott Anderson 2024