Skip to content

Command cannot be directly used in Git Bash on Windows #4113

Answered by roele
daief asked this question in Q&A
Discussion options

You must be logged in to vote

There is already an open issue/PR around this. Several problems exists in case of Git Bash on Windows. The mise activate bash does not generate the correct paths for .bashrc (C:\Path\To\Program instead of /c/Path/To/Program). Same issue exists for exposing tools to PATH. When using shims, the fact that they use a .cmd extension interfers with Git Bash and Cygwin. There is a command_not_found_hook that can be setup to work around this.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@daief
Comment options

@roele
Comment options

Answer selected by daief
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants