diff options
| author | Opportunity <[email protected]> | 2020-01-15 18:07:08 +0800 |
|---|---|---|
| committer | Opportunity <[email protected]> | 2020-01-15 18:07:08 +0800 |
| commit | f005776c9b847595225f5e490639fcc4a159f845 (patch) | |
| tree | c188bd117cded065bf74aba71fbc27c3dd194044 /scripts/get.sh | |
| parent | 741857e2c91b67b75e763b17ccdc6909bbc41709 (diff) | |
fix complete
Diffstat (limited to 'scripts/get.sh')
| -rwxr-xr-x | scripts/get.sh | 4 |
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 |
