From 0fba737f8d5571d41467f3d99a878e11b8c0f0f0 Mon Sep 17 00:00:00 2001 From: Nikita Rudenko Date: Fri, 30 Jan 2026 14:34:34 +0300 Subject: [PATCH] lazygit: fix incorrect bash integration #8669 bashIntegration for lazygit is missing "function" keyword, which leads to broken `~/.bashrc` file with errors like: ``` bash: ~/.bashrc: line 82: syntax error near unexpected token `(' bash: ~/.bashrc: line 82: `lg() {' ``` --- 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 b14eeba7..cf86aebe 100644 --- a/modules/programs/lazygit.nix +++ b/modules/programs/lazygit.nix @@ -88,7 +88,7 @@ in "~/.lazygit/newdir"; bashIntegration = '' - ${cfg.shellWrapperName}() { + function ${cfg.shellWrapperName}() { export LAZYGIT_NEW_DIR_FILE=${lazygitNewDirFilePath} command lazygit "$@" if [ -f $LAZYGIT_NEW_DIR_FILE ]; then