Skip to content
Vinícius R. Miguel edited this page Jan 30, 2023 · 6 revisions

Ouch has an accessible mode that formats every message in a way that is friendly to Text To Speech (TTS) programs to read, it also outputs less text, so that decompressing huge archives only logs useful pieces of information.

If you also want to make your applications accessible for other people, read this precious post:

https://bees.substack.com/p/making-hacking-accessible

The rest of this documents teaches some ways of helping you use Ouch in accessible mode.

Setting it up directly:

The flag way:

ouch --accessible (REST OF COMMAND GOES HERE)

The env var way:

ACCESSIBLE= ouch (REST OF COMMAND GOES HERE)

You can create an alias in your shell for always using the flag:

alias ouch='ouch --accessible'

Alternatively, you can set this env var in your configuration file:

export ACCESSIBLE=1

Tricks:

You can run these two lines to add the env var automatically to your bash or zsh config, is their files already exist:

[ -f "~/.bashrc" ] && echo "export ACCESSIBLE=1" >> ~/.bashrc
[ -f "~/.zshrc" ] && echo "export ACCESSIBLE=1" >> ~/.zshrc
Clone this wiki locally