You are not logged in.

#1 2012-03-26 07:21:20

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

'complete -r mplayer' is broken

So I can tab to a file with no extension when using mplayer in a terminal I've had

complete -r mplayer

in my .bashrc for ages now and it's worked fine. After the last update every time I open a terminal it has as the first line

bash: complete: mplayer: no completion specification

and I can't tab to a file with no extension.
Complete is a bash builtin

 [ ~ ]$ help complete
complete: complete [-abcdefgjksuv] [-pr] [-DE] [-o option] [-A action] [-G globpat] [-W wordlist]  [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [name ...]
    Specify how arguments are to be completed by Readline.
    
    For each NAME, specify how arguments are to be completed.  If no options
    are supplied, existing completion specifications are printed in a way that
    allows them to be reused as input.
    
    Options:
      -p	print existing completion specifications in a reusable format
      -r	remove a completion specification for each NAME, or, if no
    	NAMEs are supplied, all completion specifications
      -D	apply the completions and actions as the default for commands
    	without any specific completion defined
      -E	apply the completions and actions to "empty" commands --
    	completion attempted on a blank line
    
    When completion is attempted, the actions are applied in the order the
    uppercase-letter options are listed above.  The -D option takes
    precedence over -E.
    
    Exit Status:
    Returns success unless an invalid option is supplied or an error occurs.

It's something I use regularly and would like to have it working again.


You're just jealous because the voices only talk to me.

Offline

#2 2012-03-27 17:46:15

mdev
Member
Registered: 2010-01-29
Posts: 15

Re: 'complete -r mplayer' is broken

Try this:

# cp -a /usr/share/bash-completion/completions/mplayer /etc/bash_completion.d/

or manually source /usr/share/bash-completion/completions/mplayer in your ~/.bash_completion

I had a similar issue with git's bash-completion after the recent upgrade.

Offline

#3 2012-03-28 03:02:40

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: 'complete -r mplayer' is broken

mdev wrote:

Try this:

# cp -a /usr/share/bash-completion/completions/mplayer /etc/bash_completion.d/

or manually source /usr/share/bash-completion/completions/mplayer in your ~/.bash_completion

I had a similar issue with git's bash-completion after the recent upgrade.

That fixed the error I had showing in every terminal, thanks for that, but unfortunately still doesn't let me tab to a file with no extension.

complete -r

without specifying mplayer lets me do that but it makes having bash-completion installed reduntant...


You're just jealous because the voices only talk to me.

Offline

Board footer

Powered by FluxBB