mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
docs: Add documentational comments
This commit is contained in:
parent
1b050a13a8
commit
68ff1bb357
30 changed files with 732 additions and 562 deletions
9
scripts/PSHistStat.ps1
Normal file
9
scripts/PSHistStat.ps1
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
$PSHistPath = (Get-PSReadlineOption).HistorySavePath
|
||||
|
||||
if (Test-Path $PSHistPath) {
|
||||
$PSHist = Get-Content $PSHistPath
|
||||
$PSHist | Group-Object | Sort-Object Count -Descending | Select-Object -First 10 Count, Name
|
||||
}
|
||||
else {
|
||||
Write-Host "No history file found."
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue