Skip to content

Commit be4ca3a

Browse files
committed
fixup! Add config os.shellFunctionsFile
1 parent 9bfdb8e commit be4ca3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,10 +750,10 @@ Lazygit has a command prompt (`:`) for quickly executing shell commands without
750750

751751
```yml
752752
os:
753-
shellAliasesFile: ~/.my_aliases.sh
753+
shellFunctionsFile: ~/.my_aliases.sh
754754
```
755755

756-
For many people it might work well enough to use their entire shell config file (`~/.bashrc` or `~/.zshrc`) as the `shellAliasesFile`, but these config files typically do a lot more than defining aliases (e.g. initialize the completion system, start an ssh-agent, etc.) and this may unnecessarily delay execution of shell commands.
756+
For many people it might work well enough to use their entire shell config file (`~/.bashrc` or `~/.zshrc`) as the `shellFunctionsFile`, but these config files typically do a lot more than defining aliases (e.g. initialize the completion system, start an ssh-agent, etc.) and this may unnecessarily delay execution of shell commands.
757757

758758
When using zsh, aliases can't be used here, but functions can. It is easy to convert your existing aliases into functions, just change `alias l="ls -la"` to `l() ls -la`, for example. This way it will work as before both in the shell and in lazygit.
759759

0 commit comments

Comments
 (0)