Closed tony-sn closed 6 months ago
It still says the same message:
It gets an error
error: pathspec 'c' did not match any file(s) known to git
where is the c
option documented?
https://github.com/commitizen/cz-cli
Hi Takuya,
I believe it's the link from lazygit: lazygit custom commands
Also, lazygit's config file located differently based on OS:
Linux: ~/.config/lazygit/config.yml
MacOS: ~/Library/Application\ Support/lazygit/config.yml
Windows: %LOCALAPPDATA%\lazygit\config.yml (default location, but it will also be found in %APPDATA%\lazygit\config.yml
Source: Lazygit User Config
Therefore, if you're using a Mac, you need to copy custom command to Application Support location above, it looks like lazygit on Mac will not understand config from .config/
folder
One more thing I notice, you may install commitizen
from npm install commitizen -g
, while Mac or Linux can use brew install commitizen
EDIT: I see you might change the config folder for mac export XDG_CONFIG_HOME="$HOME/.config"
, so perhaps the way commitizen installed would be the case here.
This is the result from my Mac after the config:
The commitizen on Homebrew is a different tool. It is confusing that they have the same name. You have to install it via npm.
Hi craftzdog,
When I follow your config for lazygit, whenever I click
C
it will show the CLI screen with only optionpress enter to return to lazygit
and when I look at lazygit the example instruction is shown asSo it is likely we need to append
c
at the end of the command, to enhance normalc
shortcut from lazygit to commitizen