You are not logged in.
Pages: 1
I have the following lines in my .bashrc:
alias y='yaourt'
alias yq='y -Q'
complete -o filenames -F _yaourt y
This allows me to do bash completion with just 'y -Q' or 'y' followed by any argument. However, I'm trying to get completion to work when I type in 'yq'. I was wondering if there was a way to send the argument '-Q' to the yaourt completion? Or would I need to write a separate wrapper function?
Offline
well, did you try adding yq to the already existing line? "... _yaourt y yq"?
I don't know if it's possible with bash but it's certainly possible (and standard behaviour iirc) in ZSH so you might want to give zsh a shot.
Regards,
demian
no place like /home
github
Offline
Yes, but it doesn't work. The problem is that yaourt by itself has no tab completion. It requires arguments so that it knows what type of completion it is: ie. installed vs not installed programs. I would prefer to get it to work in bash, but if not, I'll take a look at zsh.
Offline
Pages: 1