Daniel Little Coding Blog
Daniel Little Coding Blog

A blog about .net development and the web.

Our Newsletter


Like this blog? Get each new post as soon it's posted.

Tags


Twitter


Daniel Little Coding Blog

powershell

Powershell typeof

Coming from C#, it provides the built in function typeof() that you can use to get the Type of a class. Powershell also makes it easy to get Type information. Wrapping the type in square brackets [TypeName] evaluates to an instance of System.Reflection.TypeInfo. Which you can then use to compare it as per normal. PS>"".GetType() -Eq [s…

Daniel LittleDaniel Little

My PowerShell Profile

This is my PowerShell profile, it does a few nice things such as add open and edit commands to the shell. Most importantly though it customizes my prompt to shorten it while still showing how deep I am in the directory hierarchy. I've also set up poshgit as well as a few other helpers and functions. function Open($path) { explorer $pa…

Daniel LittleDaniel Little