lazygit: fix bash integration (#8153)

- if the shellWrapperName is equal to the binary, then calling the
binary without command will cause an infinite recursion
This commit is contained in:
Marijan Petričević
2025-11-12 16:31:32 +01:00
committed by GitHub
parent 37a3d97f28
commit dfca39f8af

View File

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