10 Commits

Author SHA1 Message Date
Ville Skyttä
e21af9b038 service: Fix /path/to/service completion. 2011-07-26 23:12:36 +03:00
Ville Skyttä
ccb8c91803 service: Always include start and stop in service command completions.
Not all services are in /etc/init.d files (such as systemd ones) from
which command completions can be parsed from.
2011-06-18 23:26:57 +03:00
Ville Skyttä
8048917968 Use _init_completion() in completions/[q-z]*. 2011-04-21 11:15:01 +03:00
Ville Skyttä
f0a9128649 Don't install completions for init.d backup files. 2011-04-12 23:48:14 +03:00
Ville Skyttä
770bcdf71d Install full path /etc/rc.d/init.d/* completions. 2011-04-12 20:13:30 +03:00
Ville Skyttä
c42aa0b424 Install only full path (no basename) completions for /etc/init.d/*. 2011-04-12 20:12:32 +03:00
Ville Skyttä
9af6f3504e Abort completion file loading earlier if required commands are not available.
Cuts ~10% from bash completion load time on two different systems I
just tested.
2011-04-05 00:37:55 +03:00
Ville Skyttä
f7c93600a6 Avoid some have() calls.
Single file existence etc checks are cheaper than full $PATH lookups.
2011-04-04 22:12:40 +03:00
Ville Skyttä
6aecdb5f4c Avoid some unnecessary stat calls. 2011-02-05 12:06:53 +02:00
Guillaume Rousse
cb7fc2f7c4 rename 'contrib' directory to 'completions' 2010-09-12 16:42:21 +02:00