Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example/cmd/_test/zsh.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#compdef example
function _example_completion {
local IFS=$'\n'
local words=${words[@]:0:$CURRENT}

# shellcheck disable=SC2086,SC2154,SC2155
if echo ${words}"''" | xargs echo 2>/dev/null > /dev/null; then
Expand Down
1 change: 1 addition & 0 deletions internal/shell/zsh/snippet.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func Snippet(cmd *cobra.Command) string {
return fmt.Sprintf(`#compdef %v
function _%v_completion {
local IFS=$'\n'
local words=${words[@]:0:$CURRENT}

# shellcheck disable=SC2086,SC2154,SC2155
if echo ${words}"''" | xargs echo 2>/dev/null > /dev/null; then
Expand Down
Loading