completions: add unbuffer completions

unbuffer is sometimes bundled with `expect` (which fish already ships
completions for), and sometimes is bundled separately. It's often
recommended for forcing colors to have color output.

https://manpages.debian.org/bookworm/expect/unbuffer.1.en.html

Ads for unbuffer:

https://wiki.archlinux.org/title/Color_output_in_console#Reading_from_stdin
https://jvns.ca/blog/2024/10/01/terminal-colours/
This commit is contained in:
Ilya Grigoriev 2025-01-16 20:38:42 -08:00 committed by Johannes Altmanninger
parent 8a6ba7fc4c
commit 4208798585

View File

@ -0,0 +1,2 @@
complete -c unbuffer -a "(__fish_complete_subcommand)" -x
complete -c unbuffer -s p -d "Read from stdin for pipeline use, exit when stdin closes"