MartinSGill / Profile

My Powershell Profile
MIT License
5 stars 1 forks source link
powershell profile settings

Martin's Profile

Introduction

The profile I use for my own powershell sessions. Mostly this is just for my personal use, but feel free to use it and/or derive inspiration from it for your own profile.

Recent Changes

Version 1.3

Version 1.2

Version 1.0

Install

Install Dependencies

winget install --id JanDeDobbeleer.OhMyPosh
winget install --id voidtools.Everything
Install-PSResource -Name Terminal-Icons -Version 0.10.0
Install-PSResource -Name posh-git -Version 1.1.0
Install-PSResource -Name PSReadline -Version 2.2.0

Install the Module

Install-PSResource MartinsProfile

Import the Module

Import-Module MartinsProfile

Update your Profile

If you want the module to load automatically every time, then update your profile with the line above.

You can find your profile path with

$PROFILE.CurrentUserAllHosts

Troubleshooting

On Windows you can hold the "shift" key while starting the profile to enable debug output.

Alternatively you can set $env:MyProfileDebugMode before attempting to import the profile to enable debug output.

Development

Ensure dependencies have been installed.

Build the Module

git clone https://github.com/MartinSGill/Profile.git
cd Profile

Option 1: Open in VsCode and then open in DevContainer

code .

Option 2: Without DevContainer

Install-PSResource InvokeBuild
Import-Module InvokeBuild
Invoke-Build DevInstall