On Sun, Jan 07, 2007 at 12:19:58AM +0000, Penguin Lover Mike Williams squawked:
> On Sunday 07 January 2007 00:03, Jorge Almeida wrote:
> > > Always using that much resources? That doesn't sound right. What
> > > completions were you trying when it freezes up?
> >
> > Something trivial: less README (it froze at "RE")
> 
> bash itself autocompletes filenames by default.
> Try turning off bash-completion and try that again, on the exact same file.
> 

Well... that's not exactly true. The bash_completion scripts add some
intelligence to it. For example, if I type

  mplayer <tab><tab>

in my home directory, it will only show all sub-directories (including
hidden ones) and files with "proper" secondary filenames (the REGEXP
for the file endings that it accepts are

(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|vob|VOB|bin|BIN|dat|DAT|vcd|VCD|ps|PS|pes|PES|fli|FLI|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[34]|MP[34]|og[gm]|OG[GM]|wav|WAV|dump|DUMP|mkv|MKV|m4a|M4A|aac|AAC|m2v|M2V|dv|DV|mid|MID|ts|TS)

You can look at /etc/bash_completion to see what programs have their
behaviours modified. 

On the other hand, the only mention of 'less' in 
  /etc/bash_completion
  /etc/bash_completion.d/gentoo
is the line telling bash that, when you type

  less -<tab><tab>

it will fill in a second dash and show the list of long options. 

W
-- 
Cogito Eggo Sum, I think I am from Waffle.
    (dative/ablative)
Sortir en Pantoufles: up 30 days, 15:20
-- 
gentoo-user@gentoo.org mailing list

Reply via email to