-
Notifications
You must be signed in to change notification settings - Fork 22
/
.ts3updatescript
28 lines (27 loc) · 1.15 KB
/
.ts3updatescript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# About: This is the bash-completion script for the TS3UpdateScript.
# Author: https://github.com/Sebi94nbg
# Project: https://github.com/TS3Tools/TS3UpdateScript
# facebook: www.facebook.com/TS3Tools
# License: GNU GPLv3
# _______ _____ ____ _ _
# |__ __/ ____|___ \| | | |
# | | | (___ __) | |_ ___ ___ | |___
# | | \___ \ |__ <| __/ _ \ / _ \| / __|
# | | ____) |___) | || (_) | (_) | \__ \
# |_| |_____/|____/ \__\___/ \___/|_|___/
#
# Donations: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7ZRXLSC2UBVWE
#
_ts3updatescript()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="--help --version --display-settings --test-inform-online-clients --update-script --deinstall-cronjob --check --delete-old-logs --inform-online-clients --disable-temporary-password-backup --keep-backups --waiting-time-in-minutes --set-release --beta-release --debug --install-cronjob"
if [[ ${cur} == -* ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
fi
}
complete -F _ts3updatescript TS3UpdateScript