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
Copy file name to clipboardExpand all lines: README.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1071,6 +1071,14 @@ By default, the output will only show directory or equivalent structures. But yo
1071
1071
1072
1072

1073
1073
1074
+
If you are running PowerShell 7 and specifying a file system path, you can display the tree in a colorized format by using the `-InColor` dynamic parameter.
1075
+
1076
+

1077
+
1078
+
I have long term plans to have a user-configurable color map for different item types.
1079
+
1080
+
This command has an alias of `pstree`.
1081
+
1074
1082
## Format-Functions
1075
1083
1076
1084
A set of simple commands to make it easier to format values.
@@ -1276,8 +1284,22 @@ Mode LastWriteTime Length Name
1276
1284
1277
1285
You will need to manually install the file.
1278
1286
1287
+
## Other
1288
+
1289
+
From time to time I will include additional items that you might find useful.
1290
+
One item that you get when you import this module is a custom format.ps1xml file for services.
1291
+
If you are running PowerShell 7, you can run `Get-Service` and pipe it to the table view.
1292
+
1293
+
```powershell
1294
+
PS C:\> Get-Service | Format-Table -view ansi
1295
+
```
1296
+
1297
+
This will display the service status color-coded.
1298
+
1299
+

1300
+
1279
1301
## Compatibility
1280
1302
1281
1303
Where possible these commands have been tested with PowerShell 7, but not every platform. If you encounter problems, have suggestions or other feedback, please post an issue. It is assumed you will __not__ be running this commands on any edition of PowerShell Core or any beta releases of PowerShell 7.
This command is an alternative to discovering the size of a folder, or at least an easier method. Use the -Hidden parameter to include hidden files in the output. The measurement will include all files in all sub-folders.
23
23
24
+
Note that this command has been optimized for performance, but if you have a lot of files to count that will take time.
Copy file name to clipboardExpand all lines: docs/Show-Tree.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Shows the specified path as a graphical tree in the console. This is intended as
33
33
34
34
By default, the output will only show directory or equivalent structures. But you can opt to include items well as item details.
35
35
36
-
It should work cross-platform.
36
+
It should work cross-platform. If you are running PowerShell 7, there is a dynamic parameter, -InColor, that will write ANSI-colored output to the pipeline. The color scheme is designed for the file system.
37
37
38
38
Note: This is an update to an older function in my library. I seem to recall I found the original code somewhere online, perhaps from someone like Lee Holmes. Sadly, I neglected to record the source.
39
39
@@ -107,7 +107,7 @@ Shows the hierarchy of registry keys and values (-ShowProperty), recursing down
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
244
-
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
243
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
Copy file name to clipboardExpand all lines: en-us/PSScriptTools-help.xml
+21-14Lines changed: 21 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -4148,6 +4148,7 @@ Mode LastWriteTime Length Name
4148
4148
</command:details>
4149
4149
<maml:description>
4150
4150
<maml:para>This command is an alternative to discovering the size of a folder, or at least an easier method. Use the -Hidden parameter to include hidden files in the output. The measurement will include all files in all sub-folders.</maml:para>
4151
+
<maml:para>Note that this command has been optimized for performance, but if you have a lot of files to count that will take time.</maml:para>
4151
4152
</maml:description>
4152
4153
<command:syntax>
4153
4154
<command:syntaxItem>
@@ -5346,6 +5347,10 @@ ConvertTo-LocalTime clt Convert a foreign time to local
5346
5347
</command:example>
5347
5348
</command:examples>
5348
5349
<command:relatedLinks>
5350
+
<maml:navigationLink>
5351
+
<maml:linkText>Online Version:</maml:linkText>
5352
+
<maml:uri>http://bit.ly/3acixBH</maml:uri>
5353
+
</maml:navigationLink>
5349
5354
<maml:navigationLink>
5350
5355
<maml:linkText>Get-Command</maml:linkText>
5351
5356
<maml:uri></maml:uri>
@@ -10654,7 +10659,7 @@ Mode LastWriteTime Length Name
10654
10659
<maml:description>
10655
10660
<maml:para>Shows the specified path as a graphical tree in the console. This is intended as PowerShell alternative to the tree DOS command. This function should work for any type of PowerShell provider and can be used to explore providers used for configuration like the WSMan provider or the registry. Currently, this will not work with any PSDrives created with the Certificate provider.</maml:para>
10656
10661
<maml:para>By default, the output will only show directory or equivalent structures. But you can opt to include items well as item details.</maml:para>
10657
-
<maml:para>It should work cross-platform.</maml:para>
10662
+
<maml:para>It should work cross-platform. If you are running PowerShell 7, there is a dynamic parameter, -InColor, that will write ANSI-colored output to the pipeline. The color scheme is designed for the file system.</maml:para>
10658
10663
<maml:para>Note: This is an update to an older function in my library. I seem to recall I found the original code somewhere online, perhaps from someone like Lee Holmes. Sadly, I neglected to record the source.</maml:para>
0 commit comments