diff options
Diffstat (limited to 'scripts/deploy/completions')
| -rw-r--r-- | scripts/deploy/completions/bash.sh | 1 | ||||
| -rw-r--r-- | scripts/deploy/completions/fish.fish | 3 | ||||
| -rw-r--r-- | scripts/deploy/completions/powershell.ps1 | 1 | ||||
| -rw-r--r-- | scripts/deploy/completions/zsh.zsh | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/scripts/deploy/completions/bash.sh b/scripts/deploy/completions/bash.sh index a9a3263..647b5bb 100644 --- a/scripts/deploy/completions/bash.sh +++ b/scripts/deploy/completions/bash.sh @@ -13,6 +13,7 @@ _jvn_bash_completion() { args+=(-p="${prev//-/^}") args+=(-c="${COMP_WORDS[0]//-/^}") args+=(-i="$word_index") + args+=(-F="bash") for word in "${COMP_WORDS[@]}"; do args+=(-a="${word//-/^}") diff --git a/scripts/deploy/completions/fish.fish b/scripts/deploy/completions/fish.fish index eb2c2df..45205a3 100644 --- a/scripts/deploy/completions/fish.fish +++ b/scripts/deploy/completions/fish.fish @@ -67,6 +67,9 @@ function __jvn_fish_complete set -a args -a "" end + # Add shell type argument + set -a args -F "fish" + # Call jvn_comp and handle output set -l output if not jvn_comp $args 2>/dev/null | read -z output diff --git a/scripts/deploy/completions/powershell.ps1 b/scripts/deploy/completions/powershell.ps1 index ec91038..e393e52 100644 --- a/scripts/deploy/completions/powershell.ps1 +++ b/scripts/deploy/completions/powershell.ps1 @@ -25,6 +25,7 @@ Register-ArgumentCompleter -CommandName jvn -ScriptBlock { "-c", $commandName "-i", ($words.Count - 1).ToString() "-a", ($words | ForEach-Object { $_ -replace '-', '^' }) + "-F", "powershell" ) $suggestions = jvn_comp $args 2>$null diff --git a/scripts/deploy/completions/zsh.zsh b/scripts/deploy/completions/zsh.zsh index dd1ff38..2b9e7f9 100644 --- a/scripts/deploy/completions/zsh.zsh +++ b/scripts/deploy/completions/zsh.zsh @@ -22,6 +22,7 @@ _jvn_completion() { -c "$command_name" -i "$word_index" -a "${(@)words//-/^}" + -F "zsh" ) suggestions=$(jvn_comp "${args[@]}" 2>/dev/null) |
