Skip to content

Commit

Permalink
remove unnecessary pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
braineo committed Oct 4, 2024
1 parent 1efc948 commit a9d804e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/completers/make.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ _fzf_complete_make-target() {
# 2. multiple targets on a line `bigoutput littleoutput median : `
# 3. proper exclude variable assigment `var := `

_fzf_complete --ansi --tiebreak=index ${(Q)${(Z+n+)fzf_options}} -- "$@" < <(grep -E '^(([a-zA-Z_-]+)\s*?)*:([^=]|$).*?$' Makefile | 2> /dev/null | uniq | awk -F ':' '{ split($1, arr, " "); for (i in arr) print arr[i] }')
_fzf_complete --ansi --tiebreak=index ${(Q)${(Z+n+)fzf_options}} -- "$@" < <(grep -E '^(([a-zA-Z_-]+)\s*?)*:([^=]|$).*?$' Makefile 2> /dev/null | uniq | awk -F ':' '{ split($1, arr, " "); for (i in arr) print arr[i] }')
}

0 comments on commit a9d804e

Please sign in to comment.