From b06df111988c5cce44a6d5c3511b3e3df652ce74 Mon Sep 17 00:00:00 2001 From: Jorge Juan Date: Tue, 11 Aug 2015 14:27:59 +0200 Subject: [PATCH] bash completions support for msctl --- mscs.completion | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mscs.completion b/mscs.completion index 1433b7f..f0007ce 100644 --- a/mscs.completion +++ b/mscs.completion @@ -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