Skip to content

Instantly share code, notes, and snippets.

@TomoyukiAota
Last active December 23, 2018 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TomoyukiAota/05693e4f3e957ba9be343fc0486f3301 to your computer and use it in GitHub Desktop.
Save TomoyukiAota/05693e4f3e957ba9be343fc0486f3301 to your computer and use it in GitHub Desktop.
PowerShell profile for equivalent command of "rm -rf" in Bash.
function rmrf {
<#
.DESCRIPTION
Deletes the specified file or directory.
.PARAMETER target
Target file or directory to be deleted.
.NOTES
This is an equivalent command of "rm -rf" in Unix-like systems.
#>
Param(
[Parameter(Mandatory=$true)]
[string]$Target
)
Remove-Item -Recurse -Force $Target
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment