melenaos / New-PC

Installation sequence when I buy a new PC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New-PC

Installation sequence when I buy a new PC

Applications to install

Office

To find the installation media for Office 2019/2016 visit https://account.microsoft.com/services

Visit setup.office.com to activate a new license.

MyShortcut

By default all downloaded from internet scripts (or every script) doens't run without permittion. Unblock this restriction.

Set-ExecutionPolicy Unrestricted -scope CurrentUser

And then for every script, including MyShortcut run

Unblock-File ...

PowerShell

Full article

Install the New powershell from the marketplace.

Change the default shell to the 'PowerShell' and maybe edit the settings.json to clear up some unneeded shells

Download CascadiaCode font, unzip and install them.

Change the Terminal settings to use CascadiaCode NF font.

Oh My Posh

Installation

winget install JanDeDobbeleer.OhMyPosh
# restart shell to reload PATH

Edit $Profile Test-Path $profile : Test if the file exists

New-Item -path $profile -type file –force : Create if not exists

The profile script will now be created. It will be in the location following the “Directory:” output. When we browse to that location, the profile script will be there waiting for us to modify. Open the file named “Microsoft.Powershell_profile.ps1”

Edit the file and add this oh-my-posh --init --shell pwsh --config ~/Documents/PowerShell/ohmyposhv3-v2.json | Invoke-Expression Download Oh my posh json and save it at the Documents/Powershell folder

Reload Profile . $PROFILE

Colors and Icons in directories

Install-Module -Name Terminal-Icons -Repository PSGallery

and add the following at the $profile (code $profile)

Import-Module -Name Terminal-Icons

PSReadLine

https://github.com/PowerShell/PSReadLine

About

Installation sequence when I buy a new PC