[Nix-dev] proposal resurrecting bash completion
Marc Weber
marco-oweber at gmx.de
Sun Feb 6 10:15:08 CET 2011
Any volunteers testing this patch?
patch attached, proposed commit message:
* resurrect bash completion honoring comments by Eelco in -rev 20179:
- default is disabled
- if configuration.nix turns it on user can still opt-out
by defining NIX_SETUP_COMPLETION=0 before sourcing /etc/bashrc
If he dislikes individual scripts he can disable them by
setting keys in NIX_COMPL_SCRIPT_SOURCED. See example which was
one of the reasons why it was disabled the last time by Eelco.
- a bash completion script is only sourced once ever. Thus the first
one wins.
also document order of items in NIX_PROFILES which is now:
1) user env
2) default env (root)
3) system env
refactor so that the add a nix profile to env feature can be reused:
nix_add_profile PATH [--prefix|--suffix]
Should both function nix_add_profile and nix_export_a be unset?
They may be useful..
Marc Weber
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resurrect-bash-completion.patch
Type: application/octet-stream
Size: 7668 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20110206/539a6fb8/attachment.obj
More information about the nix-dev
mailing list