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:
parent
175532b627
commit
0fba737f8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue