You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix 5.1 about_Format.ps1xml examples
This fixes the wrong path used in both `Update-FormatData` examples.
The paths used to initially create the custom formatting files are
.\MyDotNetTypes.Format.ps1xml and .\MyFileSystem.Format.ps1xml.
Before this change, Update-FormatData -PrependPath incorrectly pointed
to $HOME\Format\CultureInfo.Format.ps1xml and
$PSHOME\Format\MyFileSystem.Format.ps1xml.
* Use consistent paths in 7.x about_Format.ps1xml
Both Update-FormatData examples now use the $HOME\Format example path.
This also updates the first example to create the directory before
calling Export-FormatData, as the directory doesn't exist by default
and Export-FormatData fails if part of the path is missing.
* Minor style changes
* Specify the correct formatting file extension
This fixes the incorrect assertion that formatting files **must** use
`.format.ps1xml` (only `.ps1xml` is required).
* Adjust formatting file signing note
The original note suggests that after copying Win PS formatting
files, the signature block should be replaced. However, the files don't
actually contain a signature block to begin with. This may cause
confusion, so the note is updated with a more generalized suggestion on
signing taken from about_Format.ps1xml.
Also includes minor style changes and less Windows-specific references.
* Use the same example path in all doc versions
The 7.x docs use `$HOME\Format` as an example directory. This updates
the 5.1 doc to use the same path.
It also removes the suggestion to place custom formatting files in Win
PS's `$PSHOME`. As this is a system directory, it's not an appropriate
location for user files.
* Fix formatting
* Fix link references
* Fix link references again
* Apply suggestions from review
---------
Co-authored-by: Mikey Lombardi (He/Him) <michael.t.lombardi@gmail.com>
Copy file name to clipboardExpand all lines: reference/5.1/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md
+56-42Lines changed: 56 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
description: The `Format.ps1xml` files in PowerShell define the default display of objects in the PowerShell console. You can create your own `Format.ps1xml` files to change the display of objects or to define default displays for new object types that you create in PowerShell.
Copy file name to clipboardExpand all lines: reference/7.4/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
description: Beginning in PowerShell 6, the default views for objects are defined in PowerShell source code. You can create your own `Format.ps1xml` files to change the display of objects or to define default displays for new object types that you create in PowerShell.
Copy file name to clipboardExpand all lines: reference/7.5/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
description: Beginning in PowerShell 6, the default views for objects are defined in PowerShell source code. You can create your own `Format.ps1xml` files to change the display of objects or to define default displays for new object types that you create in PowerShell.
Copy file name to clipboardExpand all lines: reference/7.6/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
description: Beginning in PowerShell 6, the default views for objects are defined in PowerShell source code. You can create your own `Format.ps1xml` files to change the display of objects or to define default displays for new object types that you create in PowerShell.
0 commit comments