From fc57d48814104e5b4d290bfa74cd2c9496f1fcff Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 13 Dec 2024 21:57:16 +0000 Subject: [PATCH] Add touch function to create new empty text file --- utils.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils.ps1 b/utils.ps1 index 0e01f4f..9dc900f 100644 --- a/utils.ps1 +++ b/utils.ps1 @@ -37,3 +37,11 @@ function rm { Invoke-Expression -Command "$Command $Path" } } + +# Define touch to create a new empty text file +function touch { + Param ( + [string]$Path + ) + New-Item -Type File $Path +}