Skip to content

Commit ebbbadd

Browse files
authored
Update path information (#10276)
1 parent 587d5da commit ebbbadd

File tree

4 files changed

+36
-40
lines changed

4 files changed

+36
-40
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_Profiles.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to create and use a PowerShell profile.
33
Locale: en-US
4-
ms.date: 04/14/2023
4+
ms.date: 07/17/2023
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-5.1&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about Profiles
@@ -28,7 +28,7 @@ doesn't create the profiles for you.
2828
## Profile types and locations
2929

3030
PowerShell supports several profile files that are scoped to users and
31-
PowerShell hosts. You can have any or all of these profiles on your computer.
31+
PowerShell hosts. You can have any or all these profiles on your computer.
3232

3333
For example, the PowerShell console supports the following basic profile files.
3434
The profiles are listed in order that they're executed.
@@ -92,7 +92,7 @@ in each PowerShell host application that you use.
9292
To see the current values of the `$PROFILE` variable, type:
9393

9494
```powershell
95-
$PROFILE | Get-Member -Type NoteProperty
95+
$PROFILE | Select-Object *
9696
```
9797

9898
You can use the `$PROFILE` variable in many commands. For example, the
@@ -225,9 +225,8 @@ CustomizeConsole
225225
### Add a customized PowerShell prompt
226226

227227
```powershell
228-
function Prompt
229-
{
230-
$env:COMPUTERNAME + "\" + (Get-Location) + "> "
228+
function Prompt {
229+
$env:COMPUTERNAME + "\" + (Get-Location) + "> "
231230
}
232231
```
233232

reference/7.2/Microsoft.PowerShell.Core/About/about_Profiles.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to create and use a PowerShell profile.
33
Locale: en-US
4-
ms.date: 04/14/2023
4+
ms.date: 07/17/2023
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.2&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about Profiles
@@ -28,27 +28,27 @@ doesn't create the profiles for you.
2828
## Profile types and locations
2929

3030
PowerShell supports several profile files that are scoped to users and
31-
PowerShell hosts. You can have any or all of these profiles on your computer.
31+
PowerShell hosts. You can have any or all these profiles on your computer.
3232

3333
For example, the PowerShell console supports the following basic profile files.
3434
The profiles are listed in order that they're executed.
3535

3636
- All Users, All Hosts
3737
- Windows - `$PSHOME\Profile.ps1`
38-
- Linux - `/usr/local/microsoft/powershell/7/profile.ps1`
38+
- Linux - `/opt/microsoft/powershell/7/profile.ps1`
3939
- macOS - `/usr/local/microsoft/powershell/7/profile.ps1`
4040
- All Users, Current Host
4141
- Windows - `$PSHOME\Microsoft.PowerShell_profile.ps1`
42-
- Linux - `/usr/local/microsoft/powershell/7/Microsoft.Powershell_profile.ps1`
43-
- macOS - `/usr/local/microsoft/powershell/7/Microsoft.Powershell_profile.ps1`
42+
- Linux - `/opt/microsoft/powershell/7/Microsoft.PowerShell_profile.ps1`
43+
- macOS - `/usr/local/microsoft/powershell/7/Microsoft.PowerShell_profile.ps1`
4444
- Current User, All Hosts
4545
- Windows - `$HOME\Documents\PowerShell\Profile.ps1`
4646
- Linux - `~/.config/powershell/profile.ps1`
4747
- macOS - `~/.config/powershell/profile.ps1`
4848
- Current user, Current Host
4949
- Windows - `$HOME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1`
50-
- Linux - `~/.config/powershell/Microsoft.Powershell_profile.ps1`
51-
- macOS - `~/.config/powershell/Microsoft.Powershell_profile.ps1`
50+
- Linux - `~/.config/powershell/Microsoft.PowerShell_profile.ps1`
51+
- macOS - `~/.config/powershell/Microsoft.PowerShell_profile.ps1`
5252

5353
The profile scripts are executed in the order listed. This means that changes
5454
made in the **AllUsersAllHosts** profile can be overridden by any of the other
@@ -103,7 +103,7 @@ in each PowerShell host application that you use.
103103
To see the current values of the `$PROFILE` variable, type:
104104

105105
```powershell
106-
$PROFILE | Get-Member -Type NoteProperty
106+
$PROFILE | Select-Object *
107107
```
108108

109109
You can use the `$PROFILE` variable in many commands. For example, the
@@ -236,9 +236,8 @@ CustomizeConsole
236236
### Add a customized PowerShell prompt
237237

238238
```powershell
239-
function Prompt
240-
{
241-
$env:COMPUTERNAME + "\" + (Get-Location) + "> "
239+
function Prompt {
240+
$env:COMPUTERNAME + "\" + (Get-Location) + "> "
242241
}
243242
```
244243

reference/7.3/Microsoft.PowerShell.Core/About/about_Profiles.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
description: Describes how to create and use a PowerShell profile.
33
Locale: en-US
4-
ms.date: 04/14/2023
5-
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.3&WT.mc_id=ps-gethelp
4+
ms.date: 07/17/2023
5+
online version: https://learn.microsoft.com/powershell/module/Microsoft.PowerShell.core/about/about_profiles?view=powershell-7.3&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about Profiles
88
---
@@ -28,27 +28,27 @@ doesn't create the profiles for you.
2828
## Profile types and locations
2929

3030
PowerShell supports several profile files that are scoped to users and
31-
PowerShell hosts. You can have any or all of these profiles on your computer.
31+
PowerShell hosts. You can have any or all these profiles on your computer.
3232

3333
For example, the PowerShell console supports the following basic profile files.
3434
The profiles are listed in order that they're executed.
3535

3636
- All Users, All Hosts
3737
- Windows - `$PSHOME\Profile.ps1`
38-
- Linux - `/usr/local/microsoft/powershell/7/profile.ps1`
38+
- Linux - `/opt/microsoft/powershell/7/profile.ps1`
3939
- macOS - `/usr/local/microsoft/powershell/7/profile.ps1`
4040
- All Users, Current Host
4141
- Windows - `$PSHOME\Microsoft.PowerShell_profile.ps1`
42-
- Linux - `/usr/local/microsoft/powershell/7/Microsoft.Powershell_profile.ps1`
43-
- macOS - `/usr/local/microsoft/powershell/7/Microsoft.Powershell_profile.ps1`
42+
- Linux - `/opt/microsoft/powershell/7/Microsoft.PowerShell_profile.ps1`
43+
- macOS - `/usr/local/microsoft/powershell/7/Microsoft.PowerShell_profile.ps1`
4444
- Current User, All Hosts
4545
- Windows - `$HOME\Documents\PowerShell\Profile.ps1`
4646
- Linux - `~/.config/powershell/profile.ps1`
4747
- macOS - `~/.config/powershell/profile.ps1`
4848
- Current user, Current Host
4949
- Windows - `$HOME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1`
50-
- Linux - `~/.config/powershell/Microsoft.Powershell_profile.ps1`
51-
- macOS - `~/.config/powershell/Microsoft.Powershell_profile.ps1`
50+
- Linux - `~/.config/powershell/Microsoft.PowerShell_profile.ps1`
51+
- macOS - `~/.config/powershell/Microsoft.PowerShell_profile.ps1`
5252

5353
The profile scripts are executed in the order listed. This means that changes
5454
made in the **AllUsersAllHosts** profile can be overridden by any of the other
@@ -103,7 +103,7 @@ in each PowerShell host application that you use.
103103
To see the current values of the `$PROFILE` variable, type:
104104

105105
```powershell
106-
$PROFILE | Get-Member -Type NoteProperty
106+
$PROFILE | Select-Object *
107107
```
108108

109109
You can use the `$PROFILE` variable in many commands. For example, the
@@ -236,9 +236,8 @@ CustomizeConsole
236236
### Add a customized PowerShell prompt
237237

238238
```powershell
239-
function Prompt
240-
{
241-
$env:COMPUTERNAME + "\" + (Get-Location) + "> "
239+
function Prompt {
240+
$env:COMPUTERNAME + "\" + (Get-Location) + "> "
242241
}
243242
```
244243

reference/7.4/Microsoft.PowerShell.Core/About/about_Profiles.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to create and use a PowerShell profile.
33
Locale: en-US
4-
ms.date: 04/14/2023
4+
ms.date: 07/17/2023
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.4&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about Profiles
@@ -28,27 +28,27 @@ doesn't create the profiles for you.
2828
## Profile types and locations
2929

3030
PowerShell supports several profile files that are scoped to users and
31-
PowerShell hosts. You can have any or all of these profiles on your computer.
31+
PowerShell hosts. You can have any or all these profiles on your computer.
3232

3333
For example, the PowerShell console supports the following basic profile files.
3434
The profiles are listed in order that they're executed.
3535

3636
- All Users, All Hosts
3737
- Windows - `$PSHOME\Profile.ps1`
38-
- Linux - `/usr/local/microsoft/powershell/7/profile.ps1`
38+
- Linux - `/opt/microsoft/powershell/7/profile.ps1`
3939
- macOS - `/usr/local/microsoft/powershell/7/profile.ps1`
4040
- All Users, Current Host
4141
- Windows - `$PSHOME\Microsoft.PowerShell_profile.ps1`
42-
- Linux - `/usr/local/microsoft/powershell/7/Microsoft.Powershell_profile.ps1`
43-
- macOS - `/usr/local/microsoft/powershell/7/Microsoft.Powershell_profile.ps1`
42+
- Linux - `/opt/microsoft/powershell/7/Microsoft.PowerShell_profile.ps1`
43+
- macOS - `/usr/local/microsoft/powershell/7/Microsoft.PowerShell_profile.ps1`
4444
- Current User, All Hosts
4545
- Windows - `$HOME\Documents\PowerShell\Profile.ps1`
4646
- Linux - `~/.config/powershell/profile.ps1`
4747
- macOS - `~/.config/powershell/profile.ps1`
4848
- Current user, Current Host
4949
- Windows - `$HOME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1`
50-
- Linux - `~/.config/powershell/Microsoft.Powershell_profile.ps1`
51-
- macOS - `~/.config/powershell/Microsoft.Powershell_profile.ps1`
50+
- Linux - `~/.config/powershell/Microsoft.PowerShell_profile.ps1`
51+
- macOS - `~/.config/powershell/Microsoft.PowerShell_profile.ps1`
5252

5353
The profile scripts are executed in the order listed. This means that changes
5454
made in the **AllUsersAllHosts** profile can be overridden by any of the other
@@ -103,7 +103,7 @@ in each PowerShell host application that you use.
103103
To see the current values of the `$PROFILE` variable, type:
104104

105105
```powershell
106-
$PROFILE | Get-Member -Type NoteProperty
106+
$PROFILE | Select-Object *
107107
```
108108

109109
You can use the `$PROFILE` variable in many commands. For example, the
@@ -236,9 +236,8 @@ CustomizeConsole
236236
### Add a customized PowerShell prompt
237237

238238
```powershell
239-
function Prompt
240-
{
241-
$env:COMPUTERNAME + "\" + (Get-Location) + "> "
239+
function Prompt {
240+
$env:COMPUTERNAME + "\" + (Get-Location) + "> "
242241
}
243242
```
244243

0 commit comments

Comments
 (0)