Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - What does 1# mean in Powershell's prompt

Reply
 
Old 05-14-2008   #1 (permalink)
O.Z.


 
 

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


 
 

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.


 
 

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
Reply

Thread Tools


Similar Threads
Thread Forum
Log in prompt Live Mail
"Powershell's popularity is rocketing skywards" PowerShell
About PowerShell's scope limiatations PowerShell
How to get to the Dos prompt Vista installation & setup
PowerShell's Default Start Directory PowerShell


Vista Forums 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 Ltd

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