git-bash - 是否可以在最小化 git bash 的情况下启动 .sh 文件?

标签 git-bash

不知是否可以最小化启动.sh文件? 我目前运行的设置会定时关闭和重新打开 .sh 文件,这可能有点烦人,因为无论何时启动它都会出现在屏幕上其他所有内容的前面。

这就是我要开始的:

java -Xms1G -Xmx1G -jar server.jar

最佳答案

git-bash 依赖于单个配置文件 ~/.minttyrc 如果你在里面,或者查看 %USERPROFILE%如果你不是。如果您愿意,可以将 Window=min 添加到该配置文件中,但随后它也会启动最小化的 git-bash 窗口。

git 包含一个可直接访问的 mintty 副本,在我的特定计算机上它位于 C:\Program Files\Git\usr\bin

您可以运行 mintty 而不是运行 git-bash,mintty 可以用一个标志启动以最小化窗口。例如:mintty -w min

我还会考虑在 shell 窗口中重新启动服务器。

关于git-bash - 是否可以在最小化 git bash 的情况下启动 .sh 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56909025/

相关文章:

git 推送登录失败

powershell - vs code终端每次都改成powershell

Git 自动补全 : syntax error near unexpected token `newline'

Git 说 "Automatic merge failed",这是什么意思?

Ubuntu中的Python导入模块和文件

python - 混帐狂欢 : how to change directory when activating virtual environment

bash - 如何在 Visual Studio 2019 中使用 git bash 终端配置文件?

git - 在编写新的提交消息时如何使用以前的提交消息?

python -/bin/env : python: No such file or directory (Windows through Git Bash trying to install new Parse Cloud Code)

c# - 为什么 ReadKey 在从 Git Bash 运行 .net-core 控制台应用程序时抛出异常?