Skip to content

Instantly share code, notes, and snippets.

@vamdt
Created May 8, 2018 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vamdt/5a6d5c966eb273321f1ec5e0814ef37c to your computer and use it in GitHub Desktop.
Save vamdt/5a6d5c966eb273321f1ec5e0814ef37c to your computer and use it in GitHub Desktop.
idea terminal bash shell path
@echo off
SET bashbin="f:\tools\cmder\vendor\git-for-windows\bin"
SET currentpath=%cd%
REM replace \ to /
SET unixpath=%currentpath:\=/%
REM replace : to empty
SET unixpath=%unixpath::=%
REM add / at begnning
SET unixpath=/%unixpath%
%bashbin%\bash -l -i -c "cd %unixpath%; exec bash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment