summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-16 20:20:39 +0800
committerOpportunity <[email protected]>2020-01-16 20:20:39 +0800
commit19fef8183e250a49628a4281264753a7da1338dc (patch)
tree9feffdbd051845b652bee70fdc1974b3820601a5 /scripts
parent0ce4e75a38fbe5d4dc7688a4c65a56bf0a8d332d (diff)
fix complete
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh2
-rw-r--r--scripts/register-completions.bash2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 5f6bde3c2..a0d49c528 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -185,7 +185,7 @@ elif [[ "$SHELL" = */bash ]]; then
local word=${COMP_WORDS[COMP_CWORD]}
local completions
- completions="$(XMAKE_SKIP_HISTORY=1 xmake lua --root private.utils.complete "${COMP_POINT}" "${COMP_LINE}" 2>/dev/null)"
+ completions="$(XMAKE_SKIP_HISTORY=1 xmake lua --root private.utils.complete "${COMP_POINT}" "conf" "${COMP_LINE}" 2>/dev/null)"
if [ $? -ne 0 ]; then
completions=""
fi
diff --git a/scripts/register-completions.bash b/scripts/register-completions.bash
index e45ce6489..18df8a3b7 100644
--- a/scripts/register-completions.bash
+++ b/scripts/register-completions.bash
@@ -5,7 +5,7 @@ _xmake_bash_complete()
local word=${COMP_WORDS[COMP_CWORD]}
local completions
- completions="$(XMAKE_SKIP_HISTORY=1 xmake lua --root private.utils.complete "${COMP_POINT}" "${COMP_LINE}" 2>/dev/null)"
+ completions="$(XMAKE_SKIP_HISTORY=1 xmake lua --root private.utils.complete "${COMP_POINT}" "conf" "${COMP_LINE}" 2>/dev/null)"
if [ $? -ne 0 ]; then
completions=""
fi