Skip to content

Instantly share code, notes, and snippets.

@vamdt vamdt/idea_bash.bat
Created May 8, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.