A personal developer environment setup for Windows, including PowerShell configuration, Oh My Posh themes, and automated app installation via WinGet.
Run the following command in a PowerShell window to bootstrap the environment on a new machine:
Invoke-WebRequest -Headers @{"Cache-Control"="no-cache"} -UseBasicParsing "https://raw.githubusercontent.com/hoopsomuah/DevEnv/refs/heads/main/bootstrap/bootstrap.ps1" | Invoke-ExpressionThis script will:
- Detect or prompt you for a local path to clone the repo into (default:
~\src\DevEnv\) - Clone the repository
- Run
Configure-DevBox.ps1to install apps and configure your PowerShell profile
Note:
Configure-DevBox.ps1must be run as Administrator.
If you already have the repository cloned locally:
- Open PowerShell as Administrator
- Run:
& "C:\path\to\DevEnv\bootstrap\Configure-DevBox.ps1"
This will:
- Set the PowerShell execution policy to
RemoteSigned - Install required PowerShell modules (
posh-git,PSReadLine) - Install minimum dev tools via WinGet (
winget\min-dev.dsc.yaml) - Optionally install additional dev apps (
winget\dev-plus.dsc.yaml) - Copy the PowerShell profile from
pwsh\profile.ps1to your profile location
The scripts use the pwsh_devenv environment variable to locate the repository. It is set automatically by the bootstrap process. You can also set it manually:
[Environment]::SetEnvironmentVariable("pwsh_devenv", "C:\path\to\DevEnv", "User")