Created
September 1, 2021 07:56
-
-
Save Alistair1231/44a417b88f520fc9ea5065570c8037a5 to your computer and use it in GitHub Desktop.
Create a new note file for current class
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
$dateShort=$(Get-Date -F "yyyyMMdd") | |
$dateLong=$(Get-Date -F "dd.MM.yyyy") | |
$folderName=$(split-path -leaf $(get-location)) | |
new-item -path . -name "$folderName-$dateShort-notes.md"-ItemType "file" -Value "# $folderName Notes: $dateLong`r`n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment