Compare commits

..

2 Commits

Author SHA1 Message Date
125a509240 Add touch function to create new empty text file 2024-12-13 21:57:16 +00:00
b49371eaa3 Replace default rm alias with rm function
Define rm to work more like Unix/Linux

* Support -r and -f flags also -rf or -fr
* Support specifying multiple paths to remove
2024-12-13 21:56:06 +00:00

View File

@ -13,9 +13,6 @@ function cd {
Set-Location -Path $Path Set-Location -Path $Path
} }
# Define rm to work like Unix/Linux
# * Support -r and -f flags also -rf or -fr
# * Support specifying multiple paths to remove
function rm { function rm {
Param ( Param (
[Parameter( [Parameter(
@ -38,7 +35,7 @@ function rm {
} }
} }
# Define touch to create a new empty text file # Add new aliases
function touch { function touch {
Param ( Param (
[string]$Path [string]$Path