What I learned about powershell in 2016, according to my twitter archive
Sep 27, 2016
#TodayILearned you have to:
export-modulemember -alias * -function *
to define aliases in a Powershell module
maxtblog.com/2010/07/powershell-modules-how-to-create-aliases-for-my-functions/
Sep 23, 2016
#TodayILearned that in vim to scroll down but keep the cursor in the same place, you can do Ctrl-e
Sep 15, 2016
#TodayILearned that Powershell’s get-unique cmdlet is case sensitive.
Aug 22, 2016
#TodayILearned that Powershell’s get-help -parameter option takes a parameter of the parameter. Obvious, really :)
Aug 11, 2016
#TodayILearned this vim
:vimgrep /^functio/ %
:copen
then move to the left
Aug 10, 2016
#TodayILearned that PowerShell’s get-help has a really, really useful -window option (via @maxtrinidad , shortly b4 losing my internet :( )
Jul 5, 2016
#TodayILearned that if you’re Pester-testing a bit of a #Powershell module, and you want to Mock something you need -Module option
I think.
Jun 15, 2016
#TodayILearned this is v handy if you RunAs different users $Host.UI.RawUI.WindowTitle = $env:username
Mar 7, 2016
#TodayILearned that Powershell ISE snippets live in
C:\Users\matt\Documents\WindowsPowerShell\Snippets
..if your name happens to be matt