diff --git a/pkg/actions/env/java.go b/pkg/actions/env/java.go new file mode 100644 index 0000000000..dfb14889d3 --- /dev/null +++ b/pkg/actions/env/java.go @@ -0,0 +1,19 @@ +package env + +import ( + "github.com/rsteube/carapace" + "github.com/rsteube/carapace-bin/pkg/conditions" +) + +func init() { + knownVariables["java"] = variables{ + Condition: conditions.ConditionPath("java"), + Variables: map[string]string{ + "JAVA_HOME": "JDK installation directory", + }, + VariableCompletion: map[string]carapace.Action{ + "JAVA_HOME": carapace.ActionDirectories(), + }, + } + +}