So i installed Leiningen and git on windows. But git bash does not seem to find the lein command because it is based on a .bat file. It works in the windows command line. Is there any way to get the lein command to work in git bash?
First, I added the lein.sh script into ~/bin folder. This folder should be added in the path by GitBash itself. If it's not in PATH, you can add lein.sh to any folder that is in there or simply add ~/bin to your PATH. Something like:
PATH=$PATH:~/bin
You can set the following alias on "~/.bashrc" in your home directory to it easier to call Leiningen:
alias lein='lein.bat'
It's working fine with Leiningen 2.6.1 and Git Bash 2.8.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With