Skip to content

Latest commit

 

History

History
113 lines (87 loc) · 3.96 KB

README.md

File metadata and controls

113 lines (87 loc) · 3.96 KB

Utility Scripts Collection 🛠️

Last Commit GitHub Issues GitHub Pull Requests GitHub Stars GitHub Forks Repository Size

PowerShell Bash Git License: MIT

A collection of useful scripts I've created, or make use of.

📂 Available Scripts

Development Tools

  • git-config (PowerShell) - Automated Git configuration with productivity-focused defaults
. .\git-config\git-config.ps1
setup-git

Network Utilities

  • ForceConnectWiFi (PowerShell) - WiFi connection manager with retry capabilities
.\ForceConnectWiFi\ForceConnectWiFi.ps1 -networkName "Your_Network_Name" -maxRetries 5 -retryIntervalSeconds 10

Shell Customisations

  • 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"
}

Chocolatey

choco install packages.config

AutoHotkey Scripts

# Manually:
cd .\autohotkey\
.\vlc-speed-controls.ahk

# via PowerShell alias/function:
vlcs
# Instantly launches the script thanks to a function in profile.ps1

🚀 Getting Started

  1. Clone this repository:
git clone https://github.com/ScottWilliamAnderson/scripts.git
  1. Navigate to desired script folder:
cd scripts/<script-folder>
  1. Check individual README files for detailed usage instructions

🛠️ Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Follow the contribution guidelines
  4. Submit a pull request

🔍 Requirements

  • Windows 10/11
  • PowerShell 5.1+
  • Git 2.0+
  • [Optional] Chocolatey package manager
  • [Optional] Oh My Posh
  • [Optional] GitHub CLI
  • [Optional] AutoHotkey

📝 License

MIT © Scott Anderson 2024