Bash programmable completion of variable names
Hal Burgiss
hal at burgiss.net
Mon Jun 22 20:57:39 UTC 2009
On Mon, Jun 22, 2009 at 10:12:41PM +0200, PleegWat wrote:
>
> I know about it, ubuntu has quite a lot of them configured by default.
> It's one thing that's been annoying me at work, cause all of the servers
> are rhel 5 and I can't install completions there.
>
> It's acting weird here. If I set $c, and type 'echo $c<tab>' or 'cd
> $c<tab>', it completes with a space. If I type 'cd $c/<tab>', it expands
> to 'cd \$c' and beeps for not being able to find anything.
>
> Is there a switch somewhere for tab to expand variables?
That's kinda what I'm asking. Its always worked for me "out of the box"
without anything special, justing turning on bash_completion. I may have
misspoken though. We've got a mix here and the CentOS and Gentoo boxes seem to
expand the $c<TAB> fine, but Ubuntu not at all. The plot thickens ...
--
Hal
More information about the ubuntu-users
mailing list