Showing results for ENVIRONMENT - PowerShell Team

Dec 28, 2006
Post comments count0
Post likes count0

Editing your Profile file

PowerShell Team
PowerShell Team

$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 thou...

PHILOSOPHYENVIRONMENT
Oct 11, 2006
Post comments count0
Post likes count0

Windows PowerShell in Action

PowerShell Team
PowerShell Team

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 =====...

DOCUMENTATIONLANGUAGESHELL
Jul 21, 2006
Post comments count0
Post likes count0

Setting the console title to be your current working directory

PowerShell Team
PowerShell Team

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 out: h...

FAQSHELLENVIRONMENT
Jul 15, 2006
Post comments count0
Post likes count0

PSMDTAG:FAQ: What is $OFS

PowerShell Team
PowerShell Team

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   PSMDTAG...

FAQENVIRONMENT
Jul 1, 2006
Post comments count0
Post likes count0

Perserving Command History Across Sessions

PowerShell Team
PowerShell Team

<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 try t...

FAQSHELLENVIRONMENT
Jun 23, 2006
Post comments count0
Post likes count0

Cleaning up obsolete Windows PowerShell Aliases

PowerShell Team
PowerShell Team

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 SilentlyContinue)...

ENVIRONMENT