mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 06:48:16 -07:00
bash completions support for msctl
This commit is contained in:
parent
e104e57ad8
commit
b06df11198
@ -1,11 +1,10 @@
|
||||
MSCS=mscs
|
||||
|
||||
list_worlds() {
|
||||
$MSCS ls $1 | sed -n '/:/{s/^ *//;s/:.*$//;p}'
|
||||
}
|
||||
|
||||
_mscs() {
|
||||
local OPTS WORLDS
|
||||
MSCS="$1"
|
||||
COMPREPLY=()
|
||||
|
||||
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
|
||||
@ -61,4 +60,4 @@ _mscs() {
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
complete -F _mscs $MSCS
|
||||
complete -F _mscs msctl mscs
|
||||
|
Loading…
Reference in New Issue
Block a user