service: Fix /path/to/service completion.

This commit is contained in:
Ville Skyttä 2011-07-26 23:11:13 +03:00
parent b1f2402bfd
commit e21af9b038

View File

@ -14,7 +14,7 @@ _service()
# don't complete past 2nd token
[ $cword -gt 2 ] && return 0
if [[ $cword -eq 1 && $prev == service ]]; then
if [[ $cword -eq 1 && $prev == ?(*/)service ]]; then
_services
else
local sysvdir