|
Re: tab and variable 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. |