Skip to content

Latest commit

 

History

History
87 lines (56 loc) · 2.69 KB

File metadata and controls

87 lines (56 loc) · 2.69 KB

Windows

Set up your development environment on Windows

Dns

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-DnsClientCache

Windows Package Manager

Install winget

Apps

winstall (Unofficial Store)

Unstable Pack

DirectX

Fonts

Fira Code

Nerd Fonts

Windows Terminal

Current Settings

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"

PowerShell

Create a PowerShell profile

if (!(Test-Path -Path $PROFILE.CurrentUserAllHosts)) {
  New-Item -ItemType File -Path $PROFILE.CurrentUserAllHosts -Force
}
code $PROFILE.CurrentUserAllHosts

Give access for user to be able to run .ps1 scripts

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Oh My Posh

{% 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 %}