From 574447e7f42bc1856f428902b6c670a14dc76df5 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Wed, 17 Jan 2024 21:56:33 +0100 Subject: [PATCH] Fix bash-completion with the funky nix wrapper Signed-off-by: magic_rb --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index fda8697..131f0f2 100644 --- a/flake.nix +++ b/flake.nix @@ -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"