You are not logged in.

#1 2009-11-05 13:15:44

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

[bash] bash-completion annoyance

I was totally confused when:

mplayer <tab><tab>

was not working on files with no extension. I tried other commands like smplayer and vlc, and they worked. And then I deduced it to a fault with tab-completion, and thus remembered that I had recently installed the package because I was running a lot of long qdbus commands.

Now upon further inspection, /etc/bash_completion has got a good deal of mplayer-related stuff. But I can't seem to figure out what to ammend so that it will complete the name of the file without checking for extension, but at the same time would like to retain the functionalities offered by bash_completion for mplayer.

If there's no cure for this then I'll just remove everything about mplayer from bash_completion.


I need real, proper pen and paper for this.

Offline

#2 2009-11-05 17:37:47

AlecSchueler
Member
Registered: 2009-05-30
Posts: 22

Re: [bash] bash-completion annoyance

Wouldn't just putting `complete -f mplayer`into your ~/.bashrc work?

Offline

#3 2009-11-05 19:27:39

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: [bash] bash-completion annoyance

Thanks, I'll do that if all else fail, because that way I can't retain the rest of the magic, i.e when I:

mplayer -<tab><tab>

I need real, proper pen and paper for this.

Offline

Board footer

Powered by FluxBB