mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
bash-completion: automatically source any completion files that the user might have installed in ~/.nix-profile/etc/bash_completion.d
This commit is contained in:
parent
e91a4fb1e4
commit
970a326ebb
@ -11,6 +11,11 @@ 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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user