mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
chezmoi: move unrelated scripts out
This commit is contained in:
parent
67a78879db
commit
fff9275372
7 changed files with 1 additions and 1 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