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() {'
```
This commit is contained in:
Nikita Rudenko 2026-01-30 14:34:34 +03:00 committed by Robert Helgesson
parent 175532b627
commit 0fba737f8d

View file

@ -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