Initial commit.

This commit is contained in:
Sergey Fedosov
2016-09-03 22:35:07 +03:00
commit 9177854a27
12 changed files with 1057 additions and 0 deletions

15
bash/completion/watchman Normal file
View File

@@ -0,0 +1,15 @@
_service_module() {
local cur
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
if [[ "$UID" == '0' ]]; then
IFS=$'\n' words=( /etc/rc.d/* )
else
IFS=$'\n' words=( $HOME/.watchman/init.d/* )
fi
COMPREPLY=( $(compgen -W "${words[*]##*/}" -- "$cur") )
}
complete -F _service_module service watchman