Last active
July 20, 2024 19:31
-
-
Save mpicker0/a6a3f10e6b9278074f93 to your computer and use it in GitHub Desktop.
Configuring IntelliJ's terminal to run Cygwin
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
# Add to your .bashrc so the terminal starts in the project directory | |
if [[ ${INTELLIJ} == "true" ]]; then | |
cd ${OLDPWD} | |
fi | |
# Note that this works in IntelliJ 14, but not in 16. | |
# Change the shell path in IntelliJ's Tools > Terminal to: | |
# C:\cygwin64\bin\env INTELLIJ=true TERM=cygwin C:\cygwin64\bin\bash.exe --login -i |
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 INTELLIJ=true | |
set TERM=vt100 | |
set PATH="C:\cygwin64\bin";%PATH% | |
bash --login -i | |
REM This works in IntelliJ 16 | |
REM Change the shell path in IntelliJ's Tools > Terminal to: | |
REM C:\path\to\this\script\run_bash.bat |
This worked for me in Intellij IDEA 2024:
C:\cygwin64\bin\bash -ilc 'cd -; exec bash'
The reply above me hung indefinitely.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works like wonder