From dfca39f8af75f5d2eaff3b031cbba6a66bcfa2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Wed, 12 Nov 2025 16:31:32 +0100 Subject: [PATCH] lazygit: fix bash integration (#8153) - if the shellWrapperName is equal to the binary, then calling the binary without command will cause an infinite recursion --- modules/programs/lazygit.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/lazygit.nix b/modules/programs/lazygit.nix index e7535ae84..b499d6cb5 100644 --- a/modules/programs/lazygit.nix +++ b/modules/programs/lazygit.nix @@ -94,7 +94,7 @@ in bashIntegration = '' ${cfg.shellWrapperName}() { export LAZYGIT_NEW_DIR_FILE=${lazygitNewDirFilePath} - lazygit "$@" + command lazygit "$@" if [ -f $LAZYGIT_NEW_DIR_FILE ]; then cd "$(cat $LAZYGIT_NEW_DIR_FILE)" rm -f $LAZYGIT_NEW_DIR_FILE > /dev/null