You are not logged in.
Pages: 1
For some reason, bash tab completion isn't working for me with mpc. I can play songs from my mpd database by using the "mpc ls | mpc add" command, but when I try "mpc ls" and begin typing an album name and hitting Tab, nothing happens. I've had mpc/mpd working before, but I'm setting it up on a new computer and I've forgotten if I had to do something special to get it working correctly.
I have no idea what could be causing this, but my guess is that its something obvious that I'm forgetting. Any ideas?
Update: I tried adding the contents of /usr/share/doc/mpc/mpc-bashrc to my .bashrc file and that didn't seem to do anything. This is really bugging me, any suggestions?
Last edited by gotsomeideas (2009-01-04 02:31:20)
Offline
Has anyone else experienced this, or at least have any ideas as to what I could try? I've tried using a different terminal (I normally use rxvt-unicode, I tried xterm) but that didn't help.
This is driving me nuts. And its not that mpc isn't working -- when I type everything in by hand it works fine. But its really unusable without tab completion.
Offline
Read the instructions on the top of /etc/bash_completion.d/mpc.
Offline
What shows when you type "mpc add" followed by two tabs? If I just source that file, it shows a listing of all my music.
Offline
Read the instructions on the top of /etc/bash_completion.d/mpc.
Unfortunately, this didn't work. It looks like that file is the same as the /usr/share/doc/mpc/mpc-bashrc file I tried earlier, but I tried this one too just to be sure and it didn't do anything.
What shows when you type "mpc add" followed by two tabs? If I just source that file, it shows a listing of all my music.
Nothing happens when I try "mpc add" and hit tab.
Did you guys find you had to add that mpc completion function to your .bashrc file before you got mpc to work? I could have sworn that I didn't have to do that when I used to have mpc working on my old computer. Either way, it doesn't seem to make a difference when I add it now.
Offline
Note that I said two tabs, which is what completes, by default, if you have more than one possible completion.
Offline
Note that I said two tabs, which is what completes, by default, if you have more than one possible completion.
I definitely hit tab about 50 times, nothing happened. Sorry for not making that clear in my previous post.
Last edited by gotsomeideas (2009-01-24 03:58:39)
Offline
Odd. I don't know anything about scripting or completion, so I can't really suggest anything other than perhaps using ncmpcpp
Offline
install bash-completion (http://wiki.archlinux.org/index.php/Bash)
pacman -S bash-completion
Offline
Pages: 1