Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2009-01-16 20:59:14
Size: 1209
Editor: DavidPaleino
Comment: Added rationale and current status
Revision 5 as of 2009-01-17 11:36:30
Size: 1799
Editor: ?ColdWind
Comment: Add use cases section
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
=== Use cases ===
 * Enable modules system-wide and per-user.
 * Disable modules that have been set system-wide, per-user.
 * Disable slow parts of completions (globally, and per-command).
Line 22: Line 27:
   * /etc/profile.d/bash-completion.sh
   * /etc/bash_completion.d/ (enabled modules symlinked here)
   * ~/.bash_completion.d/ (user enabled modules symlinked here)
   * /usr/share/bash-completion/ (modules go here)
   * /usr/share/bash-completion/base (base module, splited out)
   * /usr/share/bash-completion/{.pre,.post} (initializations and cleanups, splited out)
Line 25: Line 36:
   * /etc/profile.d/    * /etc/profile.d/*bash_completion.sh

Bash Completion Team

Proposal: ''New Directory Layout''

General Information

Rationale

Bash-Completion is currently installed into different paths for each single GNU/Linux distribution. This way, it's not easy for maintainers to "interface" with other distributions' people, so a proposal has been raised to improve the directory layout of Bash-Completion scripts.

Use cases

  • Enable modules system-wide and per-user.
  • Disable modules that have been set system-wide, per-user.
  • Disable slow parts of completions (globally, and per-command).

Current status

  • Debian / Ubuntu
    • /etc/bash_completion
    • /etc/bash_completion.d/
  • Fedora / Red Hat
  • Gentoo
    • /etc/profile.d/bash-completion.sh
    • /etc/bash_completion.d/ (enabled modules symlinked here)
    • ~/.bash_completion.d/ (user enabled modules symlinked here)
    • /usr/share/bash-completion/ (modules go here)
    • /usr/share/bash-completion/base (base module, splited out)
    • /usr/share/bash-completion/{.pre,.post} (initializations and cleanups, splited out)
  • Mandriva
    • /etc/bash_completion
    • /etc/bash_completion.d/
    • /etc/profile.d/*bash_completion.sh
    • /etc/sysconfig/bash-completion
    • ~/.bash_completion

Details