PowerShellTips.json
[ { "Id": "AShortEasyToRememberIdWithNoSpaces", "CreatedDate": "2023-07-15T00:00:00", "Title": "A brief title for the tip", "TipText": "A short description of the tip.\n\nThis can be multiple lines.", "Example": "Example code to demonstrate the tip.", "Urls": [ "https://OneOrMoreUrls", "https://ToLearnMoreAboutTheTip" ], "MinPowerShellVersion": "0.0", "Category": 5 }, { "Id": "PowerShellIsOpenSource", "CreatedDate": "2023-07-16T00:00:00", "Title": "PowerShell is open source", "TipText": "Did you know that PowerShell is open source? You can contribute to the project on GitHub.", "Example": "Example code to demonstrate the tip.", "Urls": [ "https://github.com/PowerShell/PowerShell" ], "MinPowerShellVersion": "0.0", "Category": 0 }, { "Id": "StrictMode", "CreatedDate": "2023-07-17T00:00:00", "Title": "Set Strict Mode on your scripts", "TipText": "Enforce coding rules and raise errors for common coding mistakes by declaring strict mode at the top of your scripts.", "Example": "Set-StrictMode -Version Latest", "Urls": [ "https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/set-strictmode" ], "MinPowerShellVersion": "0.0", "Category": 3 }, { "Id": "CommandLineHistory", "CreatedDate": "2023-08-28T00:00:00", "Title": "View your command line history", "TipText": "PowerShell lets you view your session history with `Get-History` and it's alias `h`.\n`Get-PSReadLineOption` used with `Get-Content` takes history reading further by allowing you to read your current users lifetime history.", "Example": "Get-Content (Get-PSReadLineOption).HistorySavePath", "Urls": [ "https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline", "https://learn.microsoft.com/powershell/module/microsoft.powershell.core/get-history" ], "MinPowerShellVersion": "0.0", "Category": 5 } ] |