aboutsummaryrefslogtreecommitdiff
path: root/bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/meson.build3
-rw-r--r--bash-completion/openrc-service-script29
2 files changed, 0 insertions, 32 deletions
diff --git a/bash-completion/meson.build b/bash-completion/meson.build
index 464a952a..be62d1ae 100644
--- a/bash-completion/meson.build
+++ b/bash-completion/meson.build
@@ -8,7 +8,4 @@ bash_completions = [
install_data(bash_completions,
install_dir : get_option('datadir') / 'bash-completion/completions')
- install_data(
- 'openrc-service-script',
- install_dir : get_option('sysconfdir') / 'bash_completion.d')
endif
diff --git a/bash-completion/openrc-service-script b/bash-completion/openrc-service-script
deleted file mode 100644
index ec7707a4..00000000
--- a/bash-completion/openrc-service-script
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright (c) 2017 The OpenRC Authors.
-# See the Authors file at the top-level directory of this distribution and
-# https://github.com/OpenRC/openrc/blob/HEAD/AUTHORS
-#
-# This file is part of OpenRC. It is subject to the license terms in
-# the LICENSE file found in the top-level directory of this
-# distribution and at https://github.com/OpenRC/openrc/blob/HEAD/LICENSE
-# This file may not be copied, modified, propagated, or distributed
-# except according to the terms contained in the LICENSE file.
-
-_openrc_service_script()
-{
- local script="${COMP_WORDS[0]}"
- local cur="${COMP_WORDS[$COMP_CWORD]}"
-
- if [[ ( -f "${script}" || -h "${script}" ) && -r "${script}" ]] \
- && [[ "$(head -n 1 "${script}")" =~ \#\!.*/openrc-run ]]
- then
- [[ $COMP_CWORD -gt 1 ]] && return 1
- COMPREPLY=($(opts="start stop status restart pause zap ineed needsme iuse usesme broken"; \
- eval "$(grep '^opts=' "${script}")"; echo "${opts}"))
- [[ -n "$COMPREPLY" ]] || COMPREPLY=(start stop restart zap)
- COMPREPLY=($(compgen -W "${COMPREPLY[*]}" -- "${cur}"))
- else
- COMPREPLY=($(compgen -o default -- "${cur}"))
- fi
- return 0
-}
-complete -F _openrc_service_script */etc/init.d/*