如何在Intellij开放项目的位置打开Cygwin?

发布于 2025-01-26 15:41:56 字数 301 浏览 2 评论 0原文

我可以通过选择cygwin.bat作为tools>终端设置。

我希望它可以在项目文件夹中打开。例如,如果该项目位于c:\ project \ project1,并且我打开project1当我单击终端时,我希望该提示将如何

myuser@ /cygdrive/c/projects/project1

:我实现了吗?

I can configure Cygwin as my terminal in Intellij by selecting the Cygwin.bat as shell path in Tools > Terminal settings.

I want it to open at the project folder. For example, If the project is at c:\projects\project1 and I open project1 when I'm clicking on the Terminal I expect the prompt to be at:

myuser@ /cygdrive/c/projects/project1

How can I achieve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

﹏雨一样淡蓝的深情 2025-02-02 15:41:56

来自这个论坛帖子的解决方案应该有帮助:

"c:\cygwin64\bin\sh" -lic 'cd -; exec bash'

The solution from this forum post should help:

"c:\cygwin64\bin\sh" -lic 'cd -; exec bash'
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文