mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-21 12:16:54 +02:00
Any newly loaded custom command coming from the per-repo config file should add to the global ones (or override an existing one in the global one), rather than replace all global ones. We can achieve this by simply prepending the newly loaded commands to the existing ones. We don't have to take care of removing duplicate key assignments; it is already possible to add two custom commands with the same key to the global config file, the first one wins.