与这个问题类似,我想停止sbt向Shell发送消息和空行。如果我使用选项
我已经尝试在名为
作为我尝试避免的一个例子,以下是我启动正在工作中的项目时发生的情况(编译、测试等过程中会散布类似数量的垃圾信息):
sbt -Dsbt.supershell=false
运行sbt,则会停止,但我想通过在~/.sbt
或类似位置的点文件中全局禁用它。我可以用一个包装器替换sbt
二进制文件,该包装器总是添加此选项,但这看起来不太优雅。我已经尝试在名为
~/.sbt/1.0/global.sbt
和~/.sbt/1.3/global.sbt
的文件中尝试了以下每个选项,但都没有效果:sbt.supershell := false
useSuperShell := false
sbt.useSuperShell := false
useSuperShell := false
supershell := false
ThisBuild / useSuperShell := false
作为我尝试避免的一个例子,以下是我启动正在工作中的项目时发生的情况(编译、测试等过程中会散布类似数量的垃圾信息):
sbt
。
$ sbt
[info] Loading settings for project global-plugins from metals.sbt ...
[info] Loading global plugins from /Users/chris/.sbt/1.0/plugins
| => global-plugins / updateCacheName 0s
| => global-plugins / updateCacheName 0s
| => Global / skip 0s
| => global-plugins / updateCacheName 0s
| => Global / skip 0s
| => global-plugins / updateCacheName 0s
| => global-plugins / updateCacheName 0s
| => global-plugins / update 0s
| => global-plugins / Runtime / unmanagedClasspath 0s
| => global-plugins / scalaCompilerBridgeResolvers 0s
| => global-plugins / Compile / externalHooks 0s
| => global-plugins / Compile / externalHooks 0s
| => global-plugins / dependencyPositions 0s
| => global-plugins / update 0s
| => global-plugins / Runtime / unmanagedClasspath 0s
| => global-plugins / moduleSettings 0s
| => global-plugins / csrConfiguration 0s
| => global-plugins / projectDescriptors 0s
| => global-plugins / dependencyPositions 0s
| => global-plugins / update 0s
| => global-plugins / Runtime / unmanagedClasspath 0s
| => global-plugins / csrRecursiveResolvers 0s
| => global-plugins / moduleSettings 0s
| => global-plugins / csrConfiguration 0s
| => global-plugins / projectDescriptors 0s
| => global-plugins / dependencyPositions 0s
| => global-plugins / update 0s
| => global-plugins / Runtime / unmanagedClasspath 0s
| => global-plugins / csrRecursiveResolvers 0s
| => global-plugins / moduleSettings 0s
| => global-plugins / csrConfiguration 0s
| => global-plugins / projectDescriptors 0s
| => global-plugins / dependencyPositions 0s
| => global-plugins / update 0s
| => global-plugins / Runtime / unmanagedClasspath 0s
| => global-plugins / update 0s
| => global-plugins / Runtime / unmanagedClasspath 0s
| => global-plugins / update 0s
| => global-plugins / Runtime / unmanagedClasspath 0s
| => global-plugins / update 0s
| => global-plugins / Runtime / unmanagedClasspath 0s
| => global-plugins / update 0s
| => global-plugins / Compile / previousCompile 0s
| => global-plugins / Compile / compileIncremental 0s
| => global-plugins / Compile / compileIncremental 0s
| => <anon-3eb292cd> 0s
| => <anon-3eb292cd> 0s
| => <anon-3eb292cd> 0s
| => <anon-3eb292cd> 0s
| => <anon-3eb292cd> 0s
| => <anon-3eb292cd> 0s
| => <anon-3eb292cd> 0s
| => <anon-3eb292cd> 0s
| => <anon-3eb292cd> 0s
| => <anon-3eb292cd> 0s
| => <anon-3eb292cd> 1s
| => <anon-3eb292cd> 1s
| => <anon-3eb292cd> 1s
| => <anon-3eb292cd> 1s
| => <anon-3eb292cd> 1s
| => <anon-3eb292cd> 1s
| => <anon-3eb292cd> 1s
| => <anon-3eb292cd> 1s
| => <anon-3eb292cd> 1s
| => <anon-3eb292cd> 2s
| => <anon-3eb292cd> 2s
| => <anon-3eb292cd> 2s
| => <anon-3eb292cd> 2s
| => <anon-3eb292cd> 2s
| => <anon-3eb292cd> 2s
| => <anon-3eb292cd> 2s
| => <anon-3eb292cd> 2s
| => <anon-3eb292cd> 2s
| => <anon-3eb292cd> 2s
| => <anon-3eb292cd> 3s
| => <anon-3eb292cd> 3s
| => <anon-3eb292cd> 3s
| => <anon-3eb292cd> 3s
| => <anon-3eb292cd> 3s
| => <anon-3eb292cd> 3s
| => <anon-3eb292cd> 3s
| => <anon-3eb292cd> 3s
| => <anon-3eb292cd> 3s
| => <anon-3eb292cd> 4s
| => <anon-3eb292cd> 4s
| => <anon-3eb292cd> 4s
| => <anon-3eb292cd> 4s
| => <anon-3eb292cd> 4s
| => <anon-3eb292cd> 4s
| => <anon-3eb292cd> 4s
| => <anon-3eb292cd> 4s
| => <anon-3eb292cd> 4s
| => <anon-3eb292cd> 4s
| => <anon-3eb292cd> 5s
[info] Loading project definition from /Users/chris/repos/scalacheck-demo/project
| => scalacheck-demo-build / bootResolvers 0s
| => scalacheck-demo-build / bootResolvers 0s
| => scalacheck-demo-build / bootResolvers 0s
| => scalacheck-demo-build / bootResolvers 0s
| => scalacheck-demo-build / otherResolvers 0s
| => scalacheck-demo-build / dependencyPositions 0s
| => scalacheck-demo-build / dependencyPositions 0s
| => Global / classpathEntryDefinesClass 0s
| => scalacheck-demo-build / Compile / discoveredSbtPlugins 0s
| => scalacheck-demo-build / csrFallbackDependencies 0s
| => scalacheck-demo-build / Compile / unmanagedSources / allInputPathsAndAttributes 0s
| => scalacheck-demo-build / Compile / externalHooks 0s
| => scalacheck-demo-build / Compile / compileIncremental 0s
[info] Loading settings for project scalacheck-demo from secrets.sbt,build.sbt ...
[info] Set current project to scalacheckdemo (in build file:/Users/chris/repos/scalacheck-demo/)
| => Global / fileTreeView 0s
| => Global / fileTreeView 0s
| => Global / previousCache 0s
| => Global / checkBuildSources 0s
| => Global / fileTreeView 0s
| => Zero / checkBuildSources / dynamicInputs 0s
| => Global / fileTreeView 0s
| => Global / previousCache 0s
| => Global / fileTreeView 0s
| => Global / fileTreeView 0s
| => Global / fileTreeView 0s
| => Global / fileTreeView 0s
| => Global / fileTreeView 0s
| => Global / fileTreeView 0s
| => Global / previousCache 0s
| => Global / fileTreeView 0s
| => Global / fileTreeView 0s
| => Global / fileTreeView 0s
| => Global / previousCache 0s
| => Global / fileTreeView 0s
[info] sbt server started at local:///Users/chris/.sbt/1.0/server/bba992971696ad25eaa9/sock
sbt:scalacheckdemo>
.bashrc
或者.zshrc
文件中加入alias sbt="sbt -Dsbt.supershell=false"
怎么样? - Mateusz Kubuszok