diff options
| author | Opportunity <[email protected]> | 2020-01-16 20:20:39 +0800 |
|---|---|---|
| committer | Opportunity <[email protected]> | 2020-01-16 20:20:39 +0800 |
| commit | 19fef8183e250a49628a4281264753a7da1338dc (patch) | |
| tree | 9feffdbd051845b652bee70fdc1974b3820601a5 /scripts | |
| parent | 0ce4e75a38fbe5d4dc7688a4c65a56bf0a8d332d (diff) | |
fix complete
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.sh | 2 | ||||
| -rw-r--r-- | scripts/register-completions.bash | 2 |
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 |
