mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
fix: fish output redirection (#1247)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
parent
f64bfa1e08
commit
b97b5ead31
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue