Skip to content

Instantly share code, notes, and snippets.

@raymadrona
Forked from nickautomatic/cmder.md
Last active April 17, 2020 14:36
Show Gist options
  • Save raymadrona/796f148cce130cbc113314f075de439c to your computer and use it in GitHub Desktop.
Save raymadrona/796f148cce130cbc113314f075de439c 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\Git\mingw64\share\git\git.ico"
    • Commands (open Git's bash shell):
      • "C:\Program Files\Git\bin\sh.exe" -l -new_console:d:%USERPROFILE%
  • Under Startup, set startup options to Specified name task --> {bash}

Terminal keyboard shortcuts and navigation (optional)

  • Under Keys & Macro assign the following keyboard shortcuts, use filter to look for the action
    • Rename active tab, set hotkey by focusing and pressing F2 in the Choose hotkey textbox
    • Close current tab, set hotkey by focusing and pressing W in the Choose hotkey textbox and set the second dropdown to LCtrl
  • Under Keys & Macro > Mark/Copy, make sure the following options are set:
    • Checked, Text Selection (Left Shift)
    • Unchecked, Copy on Left Button release
    • Checked, Start Selecttion with Shift+Arrow(Text=Left/Right/Home/End, Block=Up/Down)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment