diff --git a/README.md b/README.md index faca8b4..edac991 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ These are designed to be installed with [Scoop](http://scoop.sh). * *runat* - A replacement for the `at` command which Microsoft has deprecated and removed in Windows 2012. * *say* - An approximation of [`say`](https://ss64.com/osx/say.html) from macOS. * *shasum* - An approximation of [shasum](http://linux.die.net/man/1/shasum). +* *su* - An approximation of the Unix `su` command using `sudo` command below. It *accepts no args*. * *sudo* - An approximation of the Unix `sudo` command. Shows a UAC popup window unfortunately. * *time* - An approximation of the Unix `time` command. * *touch* - A port of the Unix `touch` command. diff --git a/su.ps1 b/su.ps1 new file mode 100644 index 0000000..5e5e38e --- /dev/null +++ b/su.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Off; + +sudo $(Get-Process -Id $PID).ProcessName