From 29a3496ebb91cc418db4b5ba66837c59c8170df5 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 23 Apr 2003 12:00:57 +0000 Subject: 18462: complete files in addition to commands --- Completion/Unix/Command/_sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_sh b/Completion/Unix/Command/_sh index 559c6ad1b..9e72a2918 100644 --- a/Completion/Unix/Command/_sh +++ b/Completion/Unix/Command/_sh @@ -16,7 +16,9 @@ else local n=${words[(b:2:i)[^-]*]} if (( n <= CURRENT )); then compset -n $n - _normal && return 0 + _alternative \ + 'files:file:_files' \ + 'commands:command:_normal' && return 0 fi _default fi -- cgit 1.4.1