mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
refactor(colored-man-pages): move nroff wrapper and refactor logic in colored function (#9437)
This commit is contained in:
parent
51772732f5
commit
9b119866dd
3 changed files with 67 additions and 32 deletions
12
plugins/colored-man-pages/nroff
Executable file
12
plugins/colored-man-pages/nroff
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue