This is a simple software that allows you to override the stdout and stderr of a tty.
cargo install --git https://github.com/umutbasal/tty-override
[gh-copilot."*"]
rules = [
["Welcome.*\n", ""],
["version.*\n", ""],
["I'm powered.*\n", ""],
["^\\W\\[[0-9;]*m\\W\\[[0-9;]*m\r\n", ""],
["^\\W\\[[0-9;]*m\\W.*?\\[2K\r\n", ""]
]
[vi." "]
rules = [
["VIM - Vi IMproved", " VSCODE"],
]
#~/tty-override/config/config.toml
curl https://raw.githubusercontent.com/umutbasal/tty-override/master/config/config.toml --create-dirs -o ~/.config/tty-override/config.toml
tty-override gh copilot suggest "list all files in the current directory"