Created
May 8, 2018 08:04
-
-
Save vamdt/5a6d5c966eb273321f1ec5e0814ef37c to your computer and use it in GitHub Desktop.
idea terminal bash shell path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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