Skip to content

Instantly share code, notes, and snippets.

@peterhpchen
Last active January 3, 2018 01:06
Show Gist options
  • Save peterhpchen/ebb8c2f8968632eb8e694ff0166d040d to your computer and use it in GitHub Desktop.
Save peterhpchen/ebb8c2f8968632eb8e694ff0166d040d to your computer and use it in GitHub Desktop.
Power Shell Custom Functions
# Add a Custom Function: https://blogs.technet.microsoft.com/heyscriptingguy/2006/11/21/how-can-i-add-a-function-to-a-windows-powershell-script/
# create today logbook
# reference: https://routley.io/tech/2017/11/23/logbook.html
function lb {
$date = Get-Date -DisplayHint date -format yyyy-MM-dd;
code --new-window \logbook\$date.md
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment