|
| Re-setting the window title when PSCX is installed |
 |
Tue, 8 Apr 2008 00:42:33 -0700 |
Would I be right in thinking that the following line has no effect on
machines that have PSCX installed?:
$host.ui.rawui.WindowTitle = "XXX"
Actually, I think the title changes briefly, but is then instantly
snapped back to what it was set to in the eyecandy*.ps1 scripts - is
there a way to override this behaviour, to allow the above one-liner's
change in title to remain?
Many thanks,
|
| Post Reply
|
| Re: Re-setting the window title when PSCX is installed |
 |
Tue, 8 Apr 2008 01:25:31 -0700 |
On Apr 8, 8:42 am, Duncan Smith <DSmith1...@googlemail.com> wrote:
> Would I be right in thinking that the following line has no effect on
> machines that have PSCX installed?:
>
> $host.ui.rawui.WindowTitle = "XXX"
>
> Actually, I think the title changes briefly, but is then instantly
> snapped back to what it was set to in the eyecandy*.ps1 scripts - is
> there a way to override this behaviour, to allow the above one-liner's
> change in title to remain?
>
> Many thanks,
>
> Duncan
2nd thoughts - doesn't matter, the modified title remains for the
duration of the script - which probably makes more sense in this case.
Thanks anyway,
|
| Post Reply
|
| Re: Re-setting the window title when PSCX is installed |
 |
Tue, 8 Apr 2008 10:00:29 -0600 |
"Duncan Smith" <DSmith1974@googlemail.com> wrote in message
news:9dd978a2-b172-42cd-8c8d-57856373faf6@8g2000hsu.googlegroups.com...
> Would I be right in thinking that the following line has no effect on
> machines that have PSCX installed?:
>
> $host.ui.rawui.WindowTitle = "XXX"
>
> Actually, I think the title changes briefly, but is then instantly
> snapped back to what it was set to in the eyecandy*.ps1 scripts - is
> there a way to override this behaviour, to allow the above one-liner's
> change in title to remain?
>
The easiest way is to not dot source the EyeCandy.ps1 script in your profile
(profile.ps1). As it is, EyeCandy.ps1 updates the titlebar every time a new
prompt is rendered which would be right after you ran the command above.
That is, if you ran it interactively.
--
Keith
|
| Post Reply
|
|
|
|
|
|
|
|
|
|