From 9419b25109f5ae52f9202e78aa9949f16f76d191 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 11 Mar 2001 19:30:49 +0000 Subject: Use _normal completion following the name of a shell script. --- Completion/User/_sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Completion/User/_sh b/Completion/User/_sh index ea0fcfc11..22379856e 100644 --- a/Completion/User/_sh +++ b/Completion/User/_sh @@ -4,5 +4,10 @@ if (( CURRENT == ${words[(i)-c]} + 1 )); then compset -q _normal else + local n=${words[(b:2:i)[^-]*]} + if (( n <= CURRENT )); then + compset -n $n + _normal && return 0 + fi _default fi -- cgit 1.4.1