Skip to content

Instantly share code, notes, and snippets.

@nickautomatic
Last active September 20, 2023 13:59
Show Gist options
  • Star 66 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
  • Save nickautomatic/02ccb76292f7f8d9767e to your computer and use it in GitHub Desktop.
Save nickautomatic/02ccb76292f7f8d9767e to your computer and use it in GitHub Desktop.
Setting up Cmder to use bash by default

Set up cmder to use msysgit / bash by default

  • Install cmder_mini (msysgit is already installed, so no need for full version)
  • In Cmder, open settings: Win + Alt + P
  • Under Startup > Tasks, add a task called {bash} with the following settings:
    • Task parameters (set icon):
      • For Cmder icon: /icon "%CMDER_ROOT%\cmder.exe"
      • For Git icon: /icon "C:\Program Files (x86)\Git\etc\git.ico"
    • Commands (open Git's bash shell):
      • "C:\Program Files (x86)\Git\bin\sh.exe" -l -new_console:d:%USERPROFILE%
  • Under Startup, set startup options to Specified name task --> {bash}
@madasebrof
Copy link

For right-click open in a directory with the latest version of git bash. Note double set of quotes per the previous comment.

Command:

""C:\Program Files\Git\bin\sh.exe" -l -new_console:d:%CMDER_START%"

image

@F4R3LL
Copy link

F4R3LL commented May 18, 2018

Thank you ! <3 @nickautomatic

@stephane303
Copy link

The link to cmder_mini is not working any more ...

@diegobiazin
Copy link

Thank you! worked for me @daevski

@alensiljak
Copy link

alensiljak commented May 13, 2019

In v190331, under Startup/Tasks, there is an option "Add/refresh default tasks" which will re-check the installed shells and add the Bash entry automatically.

image

But, for me, Git Bash was already found (at no.7).

@leandro-bra
Copy link

Thank you! Worked for me \o/ @daevski

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment