post commands or overwriting default commands #4768
|
I'm using lazygit with worktrees inside zellij with multiple panes. It would be quite useful to change the working directory for other panes whenever I change/create a worktrees. Is it possible to "attach" a command to a default command or change the default command's behaviour? |
Answered by
stefanhaller
Jul 25, 2025
Replies: 1 comment
|
No, this is another example where #4753 could be helpful. But you could replace lazygit's default commands with custom commands that perform the same action using git command line calls, and then do whatever additional thing you want to do. For something like creating or changing worktrees this should work reasonably well; for other commands that do more complex things, it might not. |
0 replies
Answer selected by
mrwsl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, this is another example where #4753 could be helpful.
But you could replace lazygit's default commands with custom commands that perform the same action using git command line calls, and then do whatever additional thing you want to do. For something like creating or changing worktrees this should work reasonably well; for other commands that do more complex things, it might not.