I want to start this discussion because I really find the aliases annoying. In karaf 2.2.x, we added a few aliases for bundle:xx, package:xx and feature:xx commands and we are adding more into 2.3.x I dislike them because they break the whole completion system we have. If you type bun<tab>, it will complete to bundle and then stop because we have bundle:xx and bundles:xx commands. If you then hit ':' as proposed, the command completion is not available anymore because the completion system can't know about aliases arguments (aliases are just functions, and no metadata is available for those).
So I'd like to disable aliases by default, and instead, define a single function that could be called from the shell, or by default in etc/shell.init.script, that would enable all the aliases. So users could call this function (let's call it 'enable-3x-aliases') and that would register all the aliases instead of having them enabled by default. Thoughts ? -- ------------------------ Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ FuseSource, Integration everywhere http://fusesource.com
