View Single Post
Old 10-20-2006   #9 (permalink)
/\\/\\o\\/\\/ [MVP]


 
 

Re: tab and variable

I have a series about TabExpansion on my blog :
the latestversion is :

http://mow001.blogspot.com/2006/10/p...on-part-5.html

It realy adds a lot to the TabCompletion like (WMI,alias, history, functions
etc. (even GUI form support for selecting from a list, and custom
completion) and much more.
This last version needs some preparement and getting used to, as it uses a
DataBase to work, but after that is realy powerfull I think

The former versions works as is, and might be more easy to start with :

http://mow001.blogspot.com/2006/06/p...on-part-4.html

on Codeplex :

http://www.codeplex.com/Wiki/View.as...tName=PsObject

Enjoy,

Greetings /\/\o\/\/

"Adam Milazzo" <adamm@san.rr.com> wrote in message
news:uGNVlri8GHA.4476@TK2MSFTNGP04.phx.gbl...
> hn wrote:
>> I'm trying to use tab together with variable, e.g.:
>> by typing $pshome<enter>, i have
>> c:\windows\system32\windowspowershell\v1.0
>>
>> i would expect $pshome\..\<tab> would resolve to
>> c:\windows\system32\windowspowershell\v1.0\..\ OR
>> c:\windows\system32\windowspowershell\v1.0\
>>
>> but it does not, it resolves somewhere to
>> c:\document and settings\username\$pshome\..\...
>>
>> am i using it right? Thanks!

>
> Unfortunately PowerShell doesn't support this out of the box. I already
> filed a bug about it...
>
> But you can implement it yourself by modifying the definition of the
> TabExpansion function. Or, rather, you can use other people's tab
> expansion scripts. I know I've seen one posted to this newsgroup that does
> variable expansion and a number of other things...
>
> Perhaps somebody can reply with a link to the script, or perhaps you can
> post a new thread asking about the community's tab expansion addons.



My System SpecsSystem Spec