Skip to content

Commit e26fc94

Browse files
authored
dotnet-suggest-shim.bash: also suggest completions past the first word. (#2134)
1 parent b7dfcd5 commit e26fc94

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/System.CommandLine.Suggest/dotnet-suggest-shim.bash

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ _dotnet_bash_complete()
55
local escaped_comp_line=$(echo "$COMP_LINE" | sed s/\"/'\\\"'/g)
66
local completions=`dotnet-suggest get --executable "${fullpath}" --position ${COMP_POINT} -- "${escaped_comp_line}"`
77

8-
if [ "${#COMP_WORDS[@]}" != "2" ]; then
9-
return
10-
fi
11-
128
local IFS=$'\n'
139
local suggestions=($(compgen -W "$completions"))
1410

@@ -30,5 +26,5 @@ _dotnet_bash_register_complete()
3026
complete -F _dotnet_bash_complete `dotnet-suggest list`
3127
}
3228
_dotnet_bash_register_complete
33-
export DOTNET_SUGGEST_SCRIPT_VERSION="1.0.1"
29+
export DOTNET_SUGGEST_SCRIPT_VERSION="1.0.2"
3430
# dotnet suggest shell complete script end

0 commit comments

Comments
 (0)