pwsh powershell
template plaster
- Questionmark Computing PowerShell Template list best practices for Module design and style.
- The PowerShell Best Practices and Style Guide
- Plaster template engine.
powershell
-
List module commands:
Get-Command -Module <ModuleName> -
Hide
dotfilesGet-ChildItem "$env:USERPROFILE" | # -recurse -force | Where-Object {$_.name -like ".*" -and $_.attributes -match 'Hidden' -eq $false} | Set-ItemProperty -name Attributes -value ([System.IO.FileAttributes]::Hidden)
ssh
As of OpenSSH 0.0.22.0 Universal Installer, a script is distributed that allows setting the default shell for openssh. You could call it with code like this:
If (Test-Path "C:\Program Files\openssh-win64\Set-SSHDefaultShell.ps1")
{& "C:\Program Files\openssh-win64\Set-SSHDefaultShell.ps1" [PARAMETERS]}
Learn more with this: Get-Help "C:\Program Files\openssh-win64\Set-SSHDefaultShell.ps1"
Or here: https://github.com/DarwinJS/ChocoPackages/blob/master/openssh/readme.md
oh-my-posh posh-git
JanDeDobbeleer / oh-my-posh
provides instructions for installing posh-git and oh-my-posh. The Honukai theme
works well with conda environments and doesn't clobber terminal colors. A
prompt function is no longer required.
Add the following to ~\Documents\PowerShell\posh-gitrc.ps1:
Import-Module posh-git Import-Module oh-my-posh Set-Theme Honukai
https://devblogs.microsoft.com/powershell/optimizing-your-profile/ Get-ArgumentCompleter.ps1
-
posh-git -
oh-my-posh -
PSReadLine -
PSBashCompletionsWindowsPowerShell only. SeeWslInterop. -
WslInteropPowerShellCore
- PowerShell-Beautifier
- Pester
- Plaster
- platyPS
- PSDeploy
- PSScriptAnalyzer
- moduleclean.ps1
- PowerShell Deep Dive: _Using $MyInvocation and Invoke-Expression to support dot-sourcing and direct invocation in shared PowerShell scripts_.
todo
-
Convert
moduleclean.ps1to installable script.