We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf5ebc2 commit 6e9117cCopy full SHA for 6e9117c
modules/cli/src/main/scala/scala/cli/commands/installcompletions/InstallCompletions.scala
@@ -102,8 +102,11 @@ object InstallCompletions extends ScalaCommand[InstallCompletionsOptions] {
102
name.getOrElse {
103
val baseName = (new Argv0).get(baseRunnerName)
104
val idx = baseName.lastIndexOf(File.separator)
105
- if (idx < 0) baseName
106
- else baseName.drop(idx + 1)
+ val last = if (idx < 0) baseName else baseName.drop(idx + 1)
+ last match {
107
+ case s".${name}.aux" => name // // cs install binaries under .app-name.aux
108
+ case name => name
109
+ }
110
}
111
112
def getFormat(format: Option[String]): Option[String] =
0 commit comments