Skip to content

Commit

Permalink
fix: fish output redirection (#1247)
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <mvasek@redhat.com>
  • Loading branch information
matejvasek authored Oct 6, 2020
1 parent f64bfa1 commit b97b5ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fish_completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ end
# so we can properly delete any completions provided by another script.
# The space after the the program name is essential to trigger completion for the program
# and not completion of the program name itself.
complete --do-complete "%[2]s " &> /dev/null
complete --do-complete "%[2]s " > /dev/null 2>&1
# Using '> /dev/null 2>&1' since '&>' is not supported in older versions of fish.
# Remove any pre-existing completions for the program since we will be handling all of them.
complete -c %[2]s -e
Expand Down

0 comments on commit b97b5ea

Please sign in to comment.