Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #4128 - fix path typo in v3-v51 #4130

Merged
merged 1 commit into from
Apr 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 7 additions & 20 deletions reference/3.0/Microsoft.PowerShell.Core/About/about_profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ title: about_Profiles
# About Profiles

## SHORT DESCRIPTION

Describes how to create and use a PowerShell profile.

## LONG DESCRIPTION
Expand Down Expand Up @@ -41,11 +40,12 @@ profile has the highest precedence.

|Description | Path |
|--------------------------|------------------------------------------|
|All Users, All Hosts |$PsHome\Profile.ps1 |
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
|Current User, All Hosts |$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Profile.ps1 |
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Microsoft.PowerShell_profile.ps1 |
|Current User, All Hosts |$Home\\[My ]Documents\\Profile.ps1 |
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
|All Users, All Hosts |$PsHome\Profile.ps1 |

The profile paths include the following variables:

Expand All @@ -60,9 +60,9 @@ supports the following host-specific profiles.

|Description | Path |
|--------------------------|-------------------------------------------|
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Microsoft.PowerShellISE_profile.ps1 |
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|

In PowerShell Help, the "CurrentUser, Current Host" profile is the profile
most often referred to as "your PowerShell profile".
Expand Down Expand Up @@ -97,7 +97,7 @@ in each PowerShell host application that you use.
To see the current values of the `$Profile` variable, type:

```powershell
$profile | Get-Member -MemberType NoteProperty
$profile | Get-Member -Type NoteProperty
```

You can use the `$Profile` variable in many commands. For example, the
Expand Down Expand Up @@ -166,7 +166,7 @@ that are specific to a host application, such as a command that sets the
background color for a host application, in a profile that is specific to that
host application.

If you are an administrator who is customizing Windows PowerShell for many
If you are an administrator who is customizing PowerShell for many
users, follow these guidelines:

- Store the common items in the `$profile.AllUsersAllHosts` profile
Expand Down Expand Up @@ -212,19 +212,6 @@ Current Host" profile. For example, add the following command:
function Pro {notepad $profile.CurrentUserAllHosts}
```

### Add a function that opens PowerShell Help in a compiled HTML

Help file (.chm)

```powershell
function Get-CHM {
Invoke-Item -Path "$env:windir\help\mui\0409\WindowsPowerShellHelp.chm"
}
```

This function opens the English version of the .chm file. However, you can
replace the language code (0409) to open other versions of the .chm file.

### Add a function that lists the aliases for any cmdlet

```powershell
Expand Down
25 changes: 6 additions & 19 deletions reference/4.0/Microsoft.PowerShell.Core/About/about_profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ schema: 2.0.0
keywords: powershell,cmdlet
title: about_Profiles
---

# About Profiles

## SHORT DESCRIPTION

Describes how to create and use a PowerShell profile.

## LONG DESCRIPTION
Expand Down Expand Up @@ -42,11 +40,12 @@ profile has the highest precedence.

|Description | Path |
|--------------------------|------------------------------------------|
|All Users, All Hosts |$PsHome\Profile.ps1 |
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
|Current User, All Hosts |$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Profile.ps1 |
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Microsoft.PowerShell_profile.ps1 |
|Current User, All Hosts |$Home\\[My ]Documents\\Profile.ps1 |
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
|All Users, All Hosts |$PsHome\Profile.ps1 |

The profile paths include the following variables:

Expand All @@ -61,9 +60,9 @@ supports the following host-specific profiles.

|Description | Path |
|--------------------------|-------------------------------------------|
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Microsoft.PowerShellISE_profile.ps1 |
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|

In PowerShell Help, the "CurrentUser, Current Host" profile is the profile
most often referred to as "your PowerShell profile".
Expand Down Expand Up @@ -167,7 +166,7 @@ that are specific to a host application, such as a command that sets the
background color for a host application, in a profile that is specific to that
host application.

If you are an administrator who is customizing Windows PowerShell for many
If you are an administrator who is customizing PowerShell for many
users, follow these guidelines:

- Store the common items in the `$profile.AllUsersAllHosts` profile
Expand Down Expand Up @@ -213,18 +212,6 @@ Current Host" profile. For example, add the following command:
function Pro {notepad $profile.CurrentUserAllHosts}
```

### Add a function that opens PowerShell Help in a compiled HTML
Help file (.chm)

```powershell
function Get-CHM {
Invoke-Item -Path "$env:windir\help\mui\0409\WindowsPowerShellHelp.chm"
}
```

This function opens the English version of the .chm file. However, you can
replace the language code (0409) to open other versions of the .chm file.

### Add a function that lists the aliases for any cmdlet

```powershell
Expand Down
24 changes: 6 additions & 18 deletions reference/5.0/Microsoft.PowerShell.Core/About/about_profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ profile has the highest precedence.

|Description | Path |
|--------------------------|------------------------------------------|
|All Users, All Hosts |$PsHome\Profile.ps1 |
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
|Current User, All Hosts |$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Profile.ps1 |
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Microsoft.PowerShell_profile.ps1 |
|Current User, All Hosts |$Home\\[My ]Documents\\Profile.ps1 |
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
|All Users, All Hosts |$PsHome\Profile.ps1 |

The profile paths include the following variables:

Expand All @@ -59,9 +60,9 @@ supports the following host-specific profiles.

|Description | Path |
|--------------------------|-------------------------------------------|
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Microsoft.PowerShellISE_profile.ps1 |
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|

In PowerShell Help, the "CurrentUser, Current Host" profile is the profile
most often referred to as "your PowerShell profile".
Expand Down Expand Up @@ -165,7 +166,7 @@ that are specific to a host application, such as a command that sets the
background color for a host application, in a profile that is specific to that
host application.

If you are an administrator who is customizing Windows PowerShell for many
If you are an administrator who is customizing PowerShell for many
users, follow these guidelines:

- Store the common items in the `$profile.AllUsersAllHosts` profile
Expand Down Expand Up @@ -211,19 +212,6 @@ Current Host" profile. For example, add the following command:
function Pro {notepad $profile.CurrentUserAllHosts}
```

### Add a function that opens PowerShell Help in a compiled HTML

Help file (.chm)

```powershell
function Get-CHM {
Invoke-Item -Path "$env:windir\help\mui\0409\WindowsPowerShellHelp.chm"
}
```

This function opens the English version of the .chm file. However, you can
replace the language code (0409) to open other versions of the .chm file.

### Add a function that lists the aliases for any cmdlet

```powershell
Expand Down
25 changes: 6 additions & 19 deletions reference/5.1/Microsoft.PowerShell.Core/About/about_Profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ schema: 2.0.0
keywords: powershell,cmdlet
title: about_Profiles
---

# About Profiles

## SHORT DESCRIPTION

Describes how to create and use a PowerShell profile.

## LONG DESCRIPTION
Expand Down Expand Up @@ -42,11 +40,12 @@ profile has the highest precedence.

|Description | Path |
|--------------------------|------------------------------------------|
|All Users, All Hosts |$PsHome\Profile.ps1 |
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
|Current User, All Hosts |$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Profile.ps1 |
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Microsoft.PowerShell_profile.ps1 |
|Current User, All Hosts |$Home\\[My ]Documents\\Profile.ps1 |
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
|All Users, All Hosts |$PsHome\Profile.ps1 |

The profile paths include the following variables:

Expand All @@ -61,9 +60,9 @@ supports the following host-specific profiles.

|Description | Path |
|--------------------------|-------------------------------------------|
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
| | \\Microsoft.PowerShellISE_profile.ps1 |
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|

In PowerShell Help, the "CurrentUser, Current Host" profile is the profile
most often referred to as "your PowerShell profile".
Expand Down Expand Up @@ -167,7 +166,7 @@ that are specific to a host application, such as a command that sets the
background color for a host application, in a profile that is specific to that
host application.

If you are an administrator who is customizing Windows PowerShell for many
If you are an administrator who is customizing PowerShell for many
users, follow these guidelines:

- Store the common items in the `$profile.AllUsersAllHosts` profile
Expand Down Expand Up @@ -213,18 +212,6 @@ Current Host" profile. For example, add the following command:
function Pro {notepad $profile.CurrentUserAllHosts}
```

### Add a function that opens PowerShell Help in a compiled HTML
Help file (.chm)

```powershell
function Get-CHM {
Invoke-Item -Path "$env:windir\help\mui\0409\WindowsPowerShellHelp.chm"
}
```

This function opens the English version of the .chm file. However, you can
replace the language code (0409) to open other versions of the .chm file.

### Add a function that lists the aliases for any cmdlet

```powershell
Expand Down
37 changes: 7 additions & 30 deletions reference/6/Microsoft.PowerShell.Core/About/about_Profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ For example, the PowerShell console supports the following basic
profile files. The profiles are listed in precedence order. The first
profile has the highest precedence.

|Description | Path |
|--------------------------|---------------------------------------------|
|Current user, Current Host|$Home\\[My]Documents\\PowerShell |
| | \\Microsoft.PowerShell_profile.ps1 |
|Current User, All Hosts |$Home\\[My]Documents\\PowerShell\Profile.ps1 |
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
|All Users, All Hosts |$PsHome\Profile.ps1 |
|Description | Path |
|--------------------------|----------------------------------------------|
|All Users, All Hosts |$PsHome\Profile.ps1 |
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
|Current User, All Hosts |$Home\\[My ]Documents\\PowerShell\Profile.ps1 |
|Current user, Current Host|$Home\\[My ]Documents\\PowerShell |
| | \\Microsoft.PowerShell_profile.ps1 |

The profile paths include the following variables:

Expand All @@ -53,16 +53,6 @@ PowerShell

- The `$Home` variable, which stores the current user's home directory

In addition, other programs that host PowerShell can support their own
profiles. For example, PowerShell Integrated Scripting Environment (ISE)
supports the following host-specific profiles.

|Description | Path |
|--------------------------|-------------------------------------------|
|Current user, Current Host|$Home\\[My]Documents\\WindowsPowerShell |
| | \\Microsoft.PowerShellISE_profile.ps1 |
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|

In PowerShell Help, the "CurrentUser, Current Host" profile is the profile
most often referred to as "your PowerShell profile".

Expand Down Expand Up @@ -211,19 +201,6 @@ Current Host" profile. For example, add the following command:
function Pro {notepad $profile.CurrentUserAllHosts}
```

### Add a function that opens PowerShell Help in a compiled HTML

Help file (.chm)

```powershell
function Get-CHM {
Invoke-Item -Path "$env:windir\help\mui\0409\WindowsPowerShellHelp.chm"
}
```

This function opens the English version of the .chm file. However, you can
replace the language code (0409) to open other versions of the .chm file.

### Add a function that lists the aliases for any cmdlet

```powershell
Expand Down