Skip to content

Instantly share code, notes, and snippets.

@zeroxia
Created December 14, 2024 11:55
Show Gist options
  • Save zeroxia/962598b612b322e281ed50510aaa05cb to your computer and use it in GitHub Desktop.
Save zeroxia/962598b612b322e281ed50510aaa05cb to your computer and use it in GitHub Desktop.
Windows Total Commander custom command for opening Git bash or Terminal window at current directory
[em_GitBashHere]
button=C:\Program Files\Git\git-bash.exe
; button=C:\Program Files\Git\git-bash.exe
cmd="%UserProfile%\scoop\shims\git-bash.exe"
menu=Git Bash Here
[em_WindowsTerminalHere]
button=C:\Windows\system32\cmd.exe
cmd="%LocalAppData%\Microsoft\WindowsApps\wt.exe"
param=-w 0 new-tab -d %P
@zeroxia
Copy link
Author

zeroxia commented Dec 14, 2024

And in wincmd.ini file, add the following shortcuts:

[Shortcuts]
CS+G=em_GitBashHere
CS+T=em_WindowsTerminalHere

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