dotfiles/dot_oh-my-zsh/plugins/colored-man-pages/executable_nroff

13 lines
285 B
Plaintext
Raw Normal View History

2020-11-18 10:49:27 +01:00
#!/bin/sh
# The whole point of this wrapper is to replace emboldening factor -u0 with
# -u1 under certain circumstances on Solaris.
if [ "$1,$2,$3" = "-u0,-Tlp,-man" ]; then
shift
exec /usr/bin/nroff -u1 "$@"
else
# Some other invocation of nroff
exec /usr/bin/nroff "$@"
fi