Last active
January 3, 2018 01:06
-
-
Save peterhpchen/ebb8c2f8968632eb8e694ff0166d040d to your computer and use it in GitHub Desktop.
Power Shell Custom Functions
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
# 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