Skip to content

Instantly share code, notes, and snippets.

@Alistair1231
Created September 1, 2021 07:56
Show Gist options
  • Save Alistair1231/44a417b88f520fc9ea5065570c8037a5 to your computer and use it in GitHub Desktop.
Save Alistair1231/44a417b88f520fc9ea5065570c8037a5 to your computer and use it in GitHub Desktop.
Create a new note file for current class
$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