Skip to content

Commit

Permalink
chore: Regenerate json file
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlydog committed May 21, 2024
1 parent e843c79 commit 20f7942
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tiPS/PowerShellTips.json
Original file line number Diff line number Diff line change
Expand Up @@ -653,10 +653,11 @@
{
"CreatedDate": "2024-05-20T00:00:00",
"Title": "Use Get-ChildItem to easily see all environment variables",
"TipText": "Need to quickly see all of the environment variables on your system? Use the `Get-ChildItem` cmdlet with the `Env:` drive to easily list them all with their values.",
"Example": "# List all environment variables and their values.\r\nGet-ChildItem Env:\r\n\r\n# You can do the same thing using one of the aliases for Get-ChildItem.\r\ngci Env:\r\ndir Env:\r\n\r\n# List a specific environment variable. e.g. the PATH environment variable.\r\nGet-ChildItem Env:Path",
"TipText": "Need to quickly see all of the environment variables on your system? Use the `Get-ChildItem` cmdlet with the `Env:` drive to easily list them all with their values.\r\n\r\nAlternatively, you can also use the Environment class functions `GetEnvironmentVariables()` and `GetEnvironmentVariable('EnvironmentVariableName')` to get the same information.",
"Example": "# List all environment variables and their values.\r\nGet-ChildItem Env:\r\n\r\n# You can do the same thing using one of the aliases for Get-ChildItem.\r\ngci Env:\r\ndir Env:\r\n\r\n# List a specific environment variable. e.g. the PATH environment variable.\r\nGet-ChildItem Env:Path\r\n\r\n# Alternatively, you can use the Environment class functions.\r\n[Environment]::GetEnvironmentVariables()\r\n[Environment]::GetEnvironmentVariable('Path')",
"Urls": [
"https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-childitem"
"https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-childitem",
"https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables"
],
"Category": 3,
"ExpiryDate": "9999-12-31T23:59:59.9999999",
Expand Down

0 comments on commit 20f7942

Please sign in to comment.