aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderhoch <derhoch@googlemail.com>2011-07-07 10:13:28 (GMT)
committerSebastien Luttringer <seblu@seblu.net>2011-07-07 10:40:13 (GMT)
commit356eb55dc1594ce0ce2714b3debfeaaca9926c0d (patch)
treed975942ad72f6d7ca122f139149a56bfad956aea
parent9abda43474520dbc98674fed13bb647322e3c30f (diff)
downloadinitscripts-356eb55dc1594ce0ce2714b3debfeaaca9926c0d.tar.xz
changing _rd.d to _rc_d to avoid:
/etc/bash_completion.d/rc.d: line 19: `_rc.d': not a valid identifier Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
-rw-r--r--bash-completion4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash-completion b/bash-completion
index e63e880..d78484e 100644
--- a/bash-completion
+++ b/bash-completion
@@ -1,6 +1,6 @@
# rc.d bash completion by Seblu <seblu@seblu.net>
-_rc.d ()
+_rc_d()
{
local action cur prev
action="help list start stop reload restart"
@@ -19,6 +19,6 @@ _rc.d ()
COMPREPLY=($(cd /etc/rc.d && compgen -f -X 'functions*' "$cur"|sort))
fi
}
-complete -F _rc.d rc.d
+complete -F _rc_d rc.d
# vim: set ts=2 sw=2 ft=sh noet: