Created
May 20, 2019 05:32
-
-
Save sagunji/ae5ddd3e3e6a3609f4c9e6ca4da313ed to your computer and use it in GitHub Desktop.
WindowsPowershellProfile.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function touch-equi { | |
param( [string[]]$files) | |
Foreach ($file in $files) { | |
if (Test-Path -Path $file) { | |
Write-Host "$file already exists." | |
continue | |
} | |
New-Item -ItemType file $file | |
} | |
} | |
Set-Alias touch-equi touch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment