Skip to content

Commit

Permalink
add poweroff alias at pwsh
Browse files Browse the repository at this point in the history
  • Loading branch information
ShortArrow committed Apr 22, 2024
1 parent bea44f5 commit 40e10e5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pwsh/src/pwsh_myplug.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,17 @@ function Get-NewPassword($length = 32)
}
-join $password
}

## reboot
function Go-Reboot()
{
Restart-Computer -Force
}
New-Alias -Name reboot -Value Go-Reboot

## poweroff
function Go-Poweroff()
{
Poweroff-Computer -Force
}
New-Alias -Name poweroff -Value Go-Poweroff

0 comments on commit 40e10e5

Please sign in to comment.