Compare commits

..

2 Commits

Author SHA1 Message Date
fc57d48814 Add touch function to create new empty text file 2024-12-13 22:09:44 +00:00
5ec851fe11 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 22:09:44 +00:00

View File

@ -13,6 +13,9 @@ function cd {
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 {
Param (
[Parameter(
@ -35,7 +38,7 @@ function rm {
}
}
# Add new aliases
# Define touch to create a new empty text file
function touch {
Param (
[string]$Path