mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 15:11:03 +01:00
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:
parent
37a3d97f28
commit
dfca39f8af
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ in
|
||||||
bashIntegration = ''
|
bashIntegration = ''
|
||||||
${cfg.shellWrapperName}() {
|
${cfg.shellWrapperName}() {
|
||||||
export LAZYGIT_NEW_DIR_FILE=${lazygitNewDirFilePath}
|
export LAZYGIT_NEW_DIR_FILE=${lazygitNewDirFilePath}
|
||||||
lazygit "$@"
|
command lazygit "$@"
|
||||||
if [ -f $LAZYGIT_NEW_DIR_FILE ]; then
|
if [ -f $LAZYGIT_NEW_DIR_FILE ]; then
|
||||||
cd "$(cat $LAZYGIT_NEW_DIR_FILE)"
|
cd "$(cat $LAZYGIT_NEW_DIR_FILE)"
|
||||||
rm -f $LAZYGIT_NEW_DIR_FILE > /dev/null
|
rm -f $LAZYGIT_NEW_DIR_FILE > /dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue