在自己的窗口中新的 cygwinshell

发布于 2025-01-02 11:11:13 字数 91 浏览 1 评论 0原文

如何从在单独窗口中打开的第一个 cygwinshell 的命令行启动第二个 cygwin shell? 我试过 “bash--登录-i” 但显然它是在当前窗口中开始的。

How can I start a second cygwin shell from commandline of the first cygwinshell which opens in a separate window?
I tried
"bash --login -i"
but it apparently it started in the current window.

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

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

发布评论

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

评论(1

岁吢 2025-01-09 11:11:13

这取决于您所说的 shell 窗口的含义。如果它是默认设置,那么它使用 cmd.exe,因此您可以发出:

cygstart "/cygdrive/C/windows/system32/cmd.exe \k 'bash.exe -i'"

或者也许这应该有效:

cygstart bash  

另一个可行的解决方案是(有点有趣):

cmd /c start cmd /k 'bash -i'

但推荐的解决方案是使用更好的解决方案(例如 Console2、rxvt(cygwin 的一部分...)。

It depends on what you mean by shell window. If it's the default setup, then it uses cmd.exe, so you can issue:

cygstart "/cygdrive/C/windows/system32/cmd.exe \k 'bash.exe -i'"

Or maybe simply this should work:

cygstart bash  

Another working solution is (somewhat funny):

cmd /c start cmd /k 'bash -i'

But a recommended solution is to use something better (e.g. Console2, rxvt (part of cygwin...).

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