Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

What does 1# mean in Powershell's prompt

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 05-14-2008   #1 (permalink)
O.Z.
Guest


 

What does 1# mean in Powershell's prompt

Hi All,

After my workstation had a cold reboot due to "environment issues" my
Powershell now shows prompts like this instead of usual one

Windows PowerShell
Copyright (C) 2006 Microsoft Corporation. All rights reserved.

PowerTab version 0.98 PowerShell TabExpansion library
/\/\o\/\/ 2007 http://thePowerShellGuy.com
PowerTab Tabexpansion additions enabled : True

1# 1
1
2# 2
2
3# 3
3
4# 4
4
5# 5

I've also got PowerShell Community Extensions
(http://www.codeplex.com/PowerShellCX/) installed.

What does this prompt mean and what should be fixed to get the regular
prompt back?

My System SpecsSystem Spec
Old 05-14-2008   #2 (permalink)
Kiron
Guest


 

Re: What does 1# mean in Powershell's prompt

The 1 in 1# represents the History ID the command you'll execute will have so you can execute it again by passing the ID to Invoke-History, pretty useful.

# in PowerShell Version 1
ihy 1

# in PowerShell Version 2 CTP
r 1

You can define your own Prompt function in the PSCX $Profile

function prompt
{
"PS " + $(get-location) + "> "
}

# ...or, if you find the Id feature you can edit the one in the $Profile

--
Kiron
My System SpecsSystem Spec
Old 05-15-2008   #3 (permalink)
O.Z.
Guest


 

Re: What does 1# mean in Powershell's prompt

Thanks. I think that was my first reboot since I've installed PowerShellCX
and I don't reboot often.

"Kiron" wrote:
Quote:

> The 1 in 1# represents the History ID the command you'll execute will have
> so you can execute it again by passing the ID to Invoke-History, pretty
> useful.
>
> # in PowerShell Version 1
> ihy 1
>
> # in PowerShell Version 2 CTP
> r 1
>
> You can define your own Prompt function in the PSCX $Profile
>
> function prompt
> {
> "PS " + $(get-location) + "> "
> }
>
> # ...or, if you find the Id feature you can edit the one in the $Profile
>
> --
> Kiron
>
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Powershell's popularity is rocketing skywards" Roman Kuzmin PowerShell 1 07-07-2008 07:10 AM
About PowerShell's scope limiatations RickB PowerShell 2 07-04-2008 05:05 AM
PowerShell's Default Start Directory Algernon PowerShell 3 05-26-2007 01:12 PM
Run As doesn't prompt Brad Vista General 11 11-29-2006 12:52 PM
Ah, the DOS Prompt Tom Scales Vista file management 2 07-06-2006 02:55 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51