sh: Complete script arguments with all filenames (Alioth: #314226).

This commit is contained in:
Ville Skyttä 2013-05-03 16:49:25 +03:00
parent 9780b0a044
commit daaa54100e

View File

@ -26,7 +26,10 @@ _sh()
return 0
fi
_filedir sh
local args ext=
_count_args
[[ $args -eq 1 ]] && ext=sh
_filedir $ext
} &&
complete -F _sh sh