tree-wide: unify Bash completions outputs (#103421)

Use $out/share/bash-completion/completions to store the Bash completions
This commit is contained in:
Jonas Chevalier
2020-11-12 21:22:18 +00:00
committed by GitHub
parent 3fceafce1e
commit a7cb88c3de
25 changed files with 46 additions and 41 deletions
@@ -83,8 +83,8 @@ in with localPython.pkgs; buildPythonApplication rec {
];
postInstall = ''
mkdir -p $out/etc/bash_completion.d
mv $out/bin/eb_completion.bash $out/etc/bash_completion.d
mkdir -p $out/share/bash-completion/completions
mv $out/bin/eb_completion.bash $out/share/bash-completion/completions/
'';
meta = with stdenv.lib; {
@@ -10,7 +10,7 @@ substituteAll {
inherit utillinux;
postInstall = ''
t=$out/etc/bash_completion.d
t=$out/share/bash-completion/completions
mkdir -p $t
cp ${./nixos-container-completion.sh} $t/nixos-container
'';