smoonlee / powershell_profile

Simple project to help me learn some markdown skills and some better github control.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

psprofile_header_Image

Configure PowerShell Execution Policy.

If running script on a fresh installation of Windows, This MUST be run on PowerShell 5 and PowerShell 7.x

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Module Version Support | Get-PowerShellGet.ps1

Must have PowerShellGet Module above 1.6.0 - Otherwise PowerShell 5.1 configuration fails to run. Download the below file to check PowerShellGet and PackageManagement are Up-To-Date.

Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/smoonlee/powershell_profile/main/Check-PowerShellGet.ps1' -OutFile "$([Environment]::GetFolderPath("Desktop"))\Check-PowerShellGet.ps1"

Execute Get-PowerShellGet.ps1 Script

& "$([Environment]::GetFolderPath("Desktop"))\Check-PowerShellGet.ps1"

gif_animation

Reset PSProfile Environment | Reset-PSProfile.ps1

If you have issues with your PSProfile configuation, You can download and execute this script. It will remove the following modules.

'Oh-My-Posh, Posh-Git, PSReadLines (2.2.0)'

Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/smoonlee/powershell_profile/main/Reset-PSProfileEnv.ps1' -OutFile "$([Environment]::GetFolderPath("Desktop"))\Reset-PSProfileEnv.ps1"

Execute Get-PowerShellGet.ps1 Script

& "$([Environment]::GetFolderPath("Desktop"))\Reset-PSProfileEnv.ps1"

gif_animation

Install-PSProfile.ps1

PSProfile Script without NerdFont Assisted Installation (Requires manual Font installation from: NerdFonts.

Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/smoonlee/powershell_profile/main/Install-PSProfile_NoNerdFonts.ps1' -OutFile "$([Environment]::GetFolderPath("Desktop"))\Install-PSProfile_NoNerdFonts.ps1"

Execute Get-PowerShellGet.ps1 Script

& "$([Environment]::GetFolderPath("Desktop"))\Install-PSProfile_NoNerdFonts.ps1"

gif_animation

PSProfile Script with NerdFont Assisted Installation

Coming Soon 

Current Windows Termianal Configuration

WindowsTermianl-PowerShell7

Current Shells

  • Azure Cloud Shell
  • PowerShell 7.* (Microsoft Store)
  • PowerShell 5.1
  • Command Prompt
  • Ubuntu (WSL)

Terminal Appearance

  • Text : Colour Scheme : One Half Dark
  • Text : Font Face : Agave (Nerd Font)
  • Text : Font Size : 10px
  • Text : Font Weight : Normal
  • Cursor Shape : Bar
  • Text : Formatting : Bright Colours
  • Window : Padding : 8px
  • Scrollbar : Visible

PowerShell Profile Path Locations

PowerShell 5.1.x Profile Path

Default

"C:\Users\$Env:UserName\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1"

PowerShell Path

"$([Environment]::GetFolderPath("MyDocuments"))\WindowsPowerShell\Microsoft.PowerShell_profile.ps1"

PowerShell 7.x

Default

"C:\Users\$Env:UserName\Documents\PowerShell\Microsoft.PowerShell_profile.ps1"

PowerShell Path

"$([Environment]::GetFolderPath("MyDocuments"))\WindowsPowerShell\Microsoft.PowerShell_profile.ps1"

Visual Studio Code

Default

"C:\Users\User\$Env:UserName\PowerShell\Microsoft.VSCode_profile.ps1"

PowerShell Path

"$([Environment]::GetFolderPath("MyDocuments"))\PowerShell\Microsoft.VSCode_profile.ps1"

About

Simple project to help me learn some markdown skills and some better github control.


Languages

Language:PowerShell 100.0%