From 8248e039a4cac9bd870e1a11aa4b5620051387dd Mon Sep 17 00:00:00 2001 From: frankslin Date: Sun, 12 Dec 2021 18:11:15 -0800 Subject: [PATCH] Supports JEP 330 in 'java' autocompletion JEP 330 allows execution of single-file source code with "java" command as follows: $ java HelloWorld.java This commit updates the bash autocompletion to suggest *.java files in addition to precompiled classes. --- completions/java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/completions/java b/completions/java index d0f70ae6a6c..eec2da61dfc 100644 --- a/completions/java +++ b/completions/java @@ -230,6 +230,8 @@ _java() else # classes completion _java_classes + # single-file source execution support (JEP 330) + _filedir 'java' fi fi