From 3bb576606128e8323618788a493f13ccd70521e3 Mon Sep 17 00:00:00 2001 From: mdiluzio Date: Sat, 10 Jan 2015 17:06:23 +0000 Subject: [PATCH] Fix completion script to take into account non-positional arguments --- scripts/ttrts_complete | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/ttrts_complete b/scripts/ttrts_complete index 65759a9..d257ed4 100755 --- a/scripts/ttrts_complete +++ b/scripts/ttrts_complete @@ -5,12 +5,11 @@ test ! -z TTRTS_MAPS && TTRTS_MAPS=/usr/share/ttrts/maps/ have ttrts && function _ttrts { - commandnames="--server --client --map --host localhost " + commandnames="--server --client --host= --host=localhost " for filename in ${TTRTS_MAPS}/* do map="${filename##*/}" commandnames+="--map=$map " - commandnames+="$map " done local cur prev