Jacek
Jacek

Reputation: 12053

Run Git console in TotalCommander by key shortcut

It is possible to run GIT bash console starting in current folder in Explorer or TotalCommander? I use Win 10.

For example: I use TotalCommander or standard WinExplorer, I'm in path c:\src\MyProjekt (there is git repo), I press specified key combination and I can type git command.

Upvotes: 5

Views: 3600

Answers (2)

Andrew1996
Andrew1996

Reputation: 21

It worked for me without adding --login after the path, as the application (git-bash.exe) already adds it:

Git Bash at startup

Upvotes: 0

Grzegorz Gierlik
Grzegorz Gierlik

Reputation: 11232

Something like that works for me for Total Commander (but it's not perfect):

  1. Run Total Commander and choose from top menu Start/Change Start Menu.
  2. Add new item with name like Git Bash as:

    a) command: c:\Program Files\Git\bin\bash.exe --login
    b) shortcut key: ctrl+alt+f1 (to choose from list).

  3. Click OK.

Since now pressing ctrl+alt+f1 should run Git Bash in current folder.

Another option (which I usually use) is to run this from Context menu:

  1. Context menu key/Shift-F10
  2. A few cursor down presses (depends on tool which I want to run).
  3. Enter.

This should work also for Windows Explorer and anything else. It's not a shortcut, but still a keyboard.

Upvotes: 13

Related Questions