This protects against the case where /proc/cmdline contains garbage triggering grep to think it is a binary. See e.g. https://bugs.archlinux.org/task/76468 for an example.
6 lines
142 B
Bash
6 lines
142 B
Bash
# fix for screen readers
|
|
if grep -Fqa 'accessibility=' /proc/cmdline &> /dev/null; then
|
|
setopt SINGLE_LINE_ZLE
|
|
fi
|
|
|
|
~/.automated_script.sh
|