I'm primarily a
User Developer Sysadmin A mixture Something else entirely .. ( 566 votes ~ 10 comments )
You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.
To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.
This is the comment you were replying to, attached to the article An introduction to bash completion: part 2:
#2 Aliases Posted by darren (66.194.xx.xx) on Wed 4 Jan 2006 at 19:49 Terrific article. Perhaps there's a clean (or easy) way to handle aliases? Debian-related example in my .bashrc: alias apt-i='apt-get install' Bash completion fails to complete "apt-i" with a list of available pkgs. And, since there's no "_available_pkgs" built-in function, it appears a one-line "complete -F" won't work here. That leaves me with adding my own custom completion and using the COMREPLY function listed in /etc/bash_completion. Easy enough. But, is there an even easier way? Should I create my alias a different way? Or setup a custom completion that uses the built-in as much as possible?
Posting Format:
Inappropriate comments will be removed.
Some help on entry formatting is available
Username:
Password:
[ Advanced Login ]
Register Account