Skip to content

Commit

Permalink
bash-completion: remove NixOS-specific patch
Browse files Browse the repository at this point in the history
The new bash-completion support in NixOS doesn't require this patch anymore.
Besides, the patch was insufficient for most purposes anyway: Bash completion
modules are spread out over all user profiles listed in $NIX_PROFILES (plus the
current-system profile), so getting full support for all installed modules
requires support for more than one "bash_completion.d" directory anyway.
  • Loading branch information
peti committed Oct 16, 2012
1 parent 5679ad6 commit 31b7510
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkgs/shells/bash-completion/default.nix
Expand Up @@ -11,11 +11,6 @@ stdenv.mkDerivation {
sha256 = "e5a490a4301dfb228361bdca2ffca597958e47dd6056005ef9393a5852af5804";
};

postInstall = ''
sed -i "$out/share/bash-completion/bash_completion" \
-e 's|: .{BASH_COMPLETION_COMPAT_DIR:=.*}|BASH_COMPLETION_COMPAT_DIR="$HOME/.nix-profile/etc/bash_completion.d"|'
'';

doCheck = true;

meta = {
Expand Down

0 comments on commit 31b7510

Please sign in to comment.