$hay has a new scripting blog at http://scriptolog.blogspot.com/ . His first blog entry Restart your engine - The PowerShell Way, talks about how he frequently edits his PowerShell profile file and then restarts his session. In his directions he says:
2: type: Notepad $profile to open your profile file
I looked at this and...
Well folks, at long last, my book is almost done :-)
Before it goes out for print, you can get electronic copies through Manning's early access program:
http://www.manning.com/payette/
The early access program is a chance for readers to provide feedback on a book so the author can fix things.
As Jeffrey says - enjoy!
-bruce...
jmanning wrote:
Also, given how common the request is, I'd ask Jeffrey to (pretty-please) also include in this post a prompt function that sets the title to include pwd.
Ask and yea shall receive:
function Prompt{ $host.ui.RawUI.WindowTitle = $(get-location) "PS> "}
If you want to see a bunch of great prompt examples, check ...
In my blog entry regarding Cascading Type Casts ( http://blogs.msdn.com/powershell/archive/2006/07/15/Cascading_Type_Casts.aspx ) there was an example:
PS> [string][char[]][int[]][char[]]"PowerShell" P o w e r S h e l l
And in a comment was a question asking why there were spaces between the letters. The answer is $OFS
...
<Edited 7/2/2006 to add tags and Categories>
Ben Winzenz didn't like the fact that Windows PowerShell did not maintain history lists between sessions (http://winzenz.blogspot.com/2006/06/cool-mshpowershell-tidbit.html) . We hear you Ben. Back to my least favorite phrase, "to ship is to choose". That said, we ...
Over the course of time, I've written a number of functions & cmdlets and then created aliases for those. Many of those where Ad Hoc and I've since thrown them away but I still have the aliases sticking around. Here is a quick and easy way to determine the validity of your aliases
gal |%{if (!(gcm $_.Definition -ea ...