Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
GAT
1.0.1.0
Functions/fuck.ps1
Function
fuck
{
$cmd
=
(
Get-History
(
(
Get-History
)
.
Count
)
)
[
0
]
.
CommandLine
Write-Output
"Running $cmd in $PWD"
sudo
powershell
-NoExit
-Command
"pushd $PWD; $cmd"
}