powershell_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
powershell_setup [2021/11/04 02:32] – stephen | powershell_setup [2023/01/28 00:04] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PowerShell Setup ====== | ====== PowerShell Setup ====== | ||
+ | |||
+ | ===== Setup PowerShell Gallery ===== | ||
- Run '' | - Run '' | ||
- | - Run '' | + | |
- | - Run '' | + | |
- | - Run '' | + | |
+ | ===== Install | ||
+ | |||
+ | - Run '' | ||
- Run '' | - Run '' | ||
- | - Run '' | + | - Run '' |
- | Import-Module posh-git | + | |
- | Import-Module oh-my-posh | + | Older stuff that probably doesn' |
- | Set-PoshPrompt | + | |
- | Import-Module | + | - Run '' |
- | Write-Output " | + | |
+ | ===== Setup Profile ===== | ||
+ | |||
+ | | ||
+ | - Test if it exists: '' | ||
+ | - Create if it doesn' | ||
+ | - Edit it: '' | ||
+ | - Put just this in it:<code powershell> | ||
+ | . ' | ||
</ | </ | ||
Line 26: | Line 39: | ||
===== Screw it, use my own ===== | ===== Screw it, use my own ===== | ||
- | | + | Run this: |
- | | + | <code powershell> |
- | + | oh-my-posh init pwsh --config | |
- | <code javascript> | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | } | + | |
- | ] | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | } | + | |
- | ] | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | } | + | |
- | ] | + | |
- | } | + | |
- | ] | + | |
- | } | + | |
</ | </ | ||
- | |||
{{tag> | {{tag> |
powershell_setup.1635993156.txt.gz · Last modified: 2021/11/05 03:32 (external edit)