Last active
October 19, 2021 08:57
-
-
Save Bujupah/2b5fc2f8b026aa6f3bd0e331ec08bf6d to your computer and use it in GitHub Desktop.
Script to make your windows powershell awesome again!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Output 'Installing awesome tools for terminal...'`n | |
winget install Microsoft.WindowsTerminal --source winget --accept-package-agreements | |
winget install Microsoft.PowerShell --source winget --accept-package-agreements | |
winget install JanDeDobbeleer.OhMyPosh --accept-package-agreements | |
Install-Module -Name Terminal-Icons -Repository PSGallery | |
Install-Module -Name PSReadLine -RequiredVersion 2.2.0-beta1 -AllowPrerelease | |
Write-Output `n'Injecting terminal styles...' | |
$url = "https://gist.githubusercontent.com/Bujupah/c29abb0048e0fb5b2fca21d0f2aa94ad/raw" | |
$destination = "~/terminal.json" | |
curl -L "$url" --silent > "$target" | |
Write-Output `n'Injecting teminal config...' | |
$termURLcfg = "https://gist.githubusercontent.com/Bujupah/68bed257c548a7aed8ce84991aa6829b/raw" | |
$destination = "$PROFILE" | |
curl -L "$termURLcfg" --silent > $target | |
Write-Output `n'Downloading CascadiaCode Nerd fonts...' | |
$fontURL = "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/CascadiaCode.zip" | |
$fontDir = "./CascadiaCode" | |
curl -L -O "$fontURL" | |
Expand-Archive -Force ./CascadiaCode.zip $fontDir | |
Write-Output 'Installing new fonts...' | |
$fonts = (New-Object -ComObject Shell.Application).Namespace(0x14) | |
Get-ChildItem -Recurse $fontDir | % { $fonts.CopyHere($_.fullname) } | |
Remove-Item .\CascadiaCode* -Recurse -Force -Confirm:$false | |
Write-Output `n'Your awesome terminal is ready to use :D' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To run this script run