Set up your development environment on Windows
Checkout your interface aliases
Get-DnsClient
Get-DnsClientServerAddress -InterfaceAlias "Ethernet"Setup Cloudflare DNS (Open Terminal with Elevated Privileges)
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("1.1.1.1", "1.0.0.1", "2606:4700:4700::1111", "2606:4700:4700::1001")
Clear-DnsClientCacheInstall winget
winstall (Unofficial Store)
Compare Settings
Compare-Object ((Invoke-WebRequest -Uri "https://gist.githubusercontent.com/unstablectrl/4b0e8f081d0487c3b2c1b96fa3f4dac0/raw/e3a00cc32593f13d265614743c4ae6e969a42552/settings.json" | select -ExpandProperty Content) -split '\r?\n') (Get-Content "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json")Restore Settings
Invoke-WebRequest -Uri "https://gist.githubusercontent.com/unstablectrl/4b0e8f081d0487c3b2c1b96fa3f4dac0/raw/e3a00cc32593f13d265614743c4ae6e969a42552/settings.json" -OutFile "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json"if (!(Test-Path -Path $PROFILE.CurrentUserAllHosts)) {
New-Item -ItemType File -Path $PROFILE.CurrentUserAllHosts -Force
}
code $PROFILE.CurrentUserAllHostsGive access for user to be able to run .ps1 scripts
Set-ExecutionPolicy -ExecutionPolicy Unrestricted{% code title="~/Documents/PowerShell/profile.ps1" %}
$OhMyPoshThemesFolder = "$Env:USERPROFILE\AppData\Local\Programs\oh-my-posh\themes\"
$OhMyPoshTheme = "tonybaloney"
$OhMyPoshConfig = Join-Path $OhMyPoshThemesFolder "$OhMyPoshTheme.omp.json"
oh-my-posh --init --shell pwsh --config $OhMyPoshConfig | Invoke-Expression
function Pro {code $PROFILE.CurrentUserAllHosts}
function Src {. $PROFILE.CurrentUserAllHosts}{% endcode %}