summaryrefslogtreecommitdiff
path: root/scripts/get.sh
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-15 18:07:08 +0800
committerOpportunity <[email protected]>2020-01-15 18:07:08 +0800
commitf005776c9b847595225f5e490639fcc4a159f845 (patch)
treec188bd117cded065bf74aba71fbc27c3dd194044 /scripts/get.sh
parent741857e2c91b67b75e763b17ccdc6909bbc41709 (diff)
fix complete
Diffstat (limited to 'scripts/get.sh')
-rwxr-xr-xscripts/get.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index c57f3bf4f..5f6bde3c2 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -170,7 +170,7 @@ if [[ "$SHELL" = */zsh ]]; then
_xmake_zsh_complete()
{
- local completions=("$(XMAKE_SKIP_HISTORY=1 xmake lua private.utils.complete 0 nospace "$words")")
+ local completions=("$(XMAKE_SKIP_HISTORY=1 xmake lua --root private.utils.complete 0 nospace "$words")")
reply=( "${(ps:\n:)completions}" )
}
@@ -185,7 +185,7 @@ elif [[ "$SHELL" = */bash ]]; then
local word=${COMP_WORDS[COMP_CWORD]}
local completions
- completions="$(XMAKE_SKIP_HISTORY=1 xmake lua private.utils.complete "${COMP_POINT}" "${COMP_LINE}" 2>/dev/null)"
+ completions="$(XMAKE_SKIP_HISTORY=1 xmake lua --root private.utils.complete "${COMP_POINT}" "${COMP_LINE}" 2>/dev/null)"
if [ $? -ne 0 ]; then
completions=""
fi