Install full path /etc/rc.d/init.d/* completions.
This commit is contained in:
parent
c42aa0b424
commit
770bcdf71d
1
CHANGES
1
CHANGES
@ -9,6 +9,7 @@ bash-completion (2.x)
|
|||||||
* Add $_backup_glob for matching various backup files.
|
* Add $_backup_glob for matching various backup files.
|
||||||
* Load and general speedups.
|
* Load and general speedups.
|
||||||
* Install only full path (no basename) completions for /etc/init.d/*.
|
* Install only full path (no basename) completions for /etc/init.d/*.
|
||||||
|
* Install full path /etc/rc.d/init.d/* completions.
|
||||||
|
|
||||||
[ Guillaume Rousse ]
|
[ Guillaume Rousse ]
|
||||||
* added puppet completion, using work from Mathieu Parent (sathieudebian.org)
|
* added puppet completion, using work from Mathieu Parent (sathieudebian.org)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# 'service' command and/or the SysV init.d directory, followed by
|
# 'service' command and/or the SysV init.d directory, followed by
|
||||||
# that script's available commands
|
# that script's available commands
|
||||||
|
|
||||||
[ -d /etc/init.d ] || have service || return
|
[[ -d /etc/init.d || -d /etc/rc.d/init.d ]] || have service || return
|
||||||
|
|
||||||
_service()
|
_service()
|
||||||
{
|
{
|
||||||
@ -29,7 +29,7 @@ _service()
|
|||||||
return 0
|
return 0
|
||||||
} &&
|
} &&
|
||||||
complete -F _service service
|
complete -F _service service
|
||||||
for svc in /etc/init.d/*; do
|
for svc in /etc/init.d/* /etc/rc.d/init.d/*; do
|
||||||
[ -x "$svc" ] && complete -F _service $svc
|
[ -x "$svc" ] && complete -F _service $svc
|
||||||
done
|
done
|
||||||
unset svc
|
unset svc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user