Fix bash-completion with the funky nix wrapper

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2024-01-17 21:56:33 +01:00
parent ba6c660326
commit 574447e7f4
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -256,6 +256,10 @@
};
nix-wrapped = pkgs.writeShellScriptBin "nix" ''
if ! [ -z $NIX_GET_COMPLETIONS ] ; then
exec .nix-unwrapped "$@"
fi
pre_lock_hash="$(sha256sum flake-secret.lock | cut -f1 -d' ')"
new_args=()
i="0"