Merge pull request #9180 from svick/simplify-completion
Simplify completions scripts
This commit is contained in:
commit
f63839ddd6
2 changed files with 2 additions and 6 deletions
|
@ -1,10 +1,8 @@
|
|||
#!/bin/bash
|
||||
# bash parameter completion for the dotnet CLI
|
||||
|
||||
_dotnet_bash_complete()
|
||||
{
|
||||
local word=${COMP_WORDS[COMP_CWORD]}
|
||||
local dotnetPath=${COMP_WORDS[1]}
|
||||
|
||||
local completions=("$(dotnet complete --position ${COMP_POINT} "${COMP_LINE}")")
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
_dotnet_zsh_complete()
|
||||
{
|
||||
local dotnetPath=$words[1]
|
||||
|
||||
local completions=("$(dotnet complete "$words")")
|
||||
|
||||
reply=( "${(ps:\n:)completions}" )
|
||||
|
|
Loading…
Reference in a new issue