madsmith / bash-completion-lib

Automatically exported from code.google.com/p/bash-completion-lib
GNU General Public License v2.0
0 stars 0 forks source link

Move all helper functions from `completionrc' to `include' directory #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The file `completionrc' still contains a few common functions:

   _alias
   _available_interfaces
   _comp_install
   _configured_interfaces
   _count_args
   _expand
   _filedir
   _get_cword
   _gids
   _modules
   _pgids
   _pids
   _rl_enabled
   _services
   _signals
   _uids
   _usergroup

But in fact it's unnecessary to load them upfront, and it's confusing which
functions are always accessible and which functions must be explicitly
included via a `comp_include()'.
So it would be better or cleaner to move the common functions to the
'include' directory and let completions include them explicitly, via for
example:

   comp_include _filedir

Original issue reported on code.google.com by fvu...@gmail.com on 5 Sep 2008 at 7:06

GoogleCodeExporter commented 8 years ago
Fixed in r100.

Also:
- Replaced file `comploadrc' with `comp_setup_init'
- Replaced file `completionrc' with `comp_load_init'

Original comment by fvu...@gmail.com on 24 Jan 2009 at 11:29