Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
09d2a597
Commit
09d2a597
authored
Dec 15, 2015
by
Marc Cornellà
Browse files
Fix style of colored-man-pages plugin
parent
a8157293
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/colored-man-pages/colored-man-pages.plugin.zsh
View file @
09d2a597
if
[
"
$OSTYPE
[0,7]
"
=
"
solaris
"
]
if
[
"
$OSTYPE
"
=
solaris
*
]
then
then
if
[
!
-x
$
{
HOME
}
/bin/nroff
]
if
[
!
-x
"
$HOME
/bin/nroff
"
]
then
then
mkdir
-p
$
{
HOME
}
/bin
mkdir
-p
"
$HOME
/bin
"
cat
>
$
{
HOME
}
/bin/nroff
<<
EOF
cat
>
"
$HOME
/bin/nroff
"
<<
EOF
#!/bin/sh
#!/bin/sh
if [ -n "
\$
_NROFF_U" -a "
\$
1,
\$
2,
\$
3" = "-u0,-Tlp,-man" ]; then
if [ -n "
\$
_NROFF_U" -a "
\$
1,
\$
2,
\$
3" = "-u0,-Tlp,-man" ]; then
shift
shift
exec /usr/bin/nroff -u
\$
{
_NROFF_U
}
"
\$
@"
exec /usr/bin/nroff -u
\$
_NROFF_U "
\$
@"
fi
fi
#-- Some other invocation of nroff
#-- Some other invocation of nroff
exec /usr/bin/nroff "
\$
@"
exec /usr/bin/nroff "
\$
@"
EOF
EOF
chmod
+x
$
{
HOME
}
/bin/nroff
chmod
+x
"
$HOME
/bin/nroff
"
fi
fi
fi
fi
man
()
{
man
()
{
env
\
env
\
LESS_TERMCAP_mb
=
$(
printf
"
\e
[1;31m"
)
\
LESS_TERMCAP_mb
=
$(
printf
"
\e
[1;31m"
)
\
LESS_TERMCAP_md
=
$(
printf
"
\e
[1;31m"
)
\
LESS_TERMCAP_md
=
$(
printf
"
\e
[1;31m"
)
\
LESS_TERMCAP_me
=
$(
printf
"
\e
[0m"
)
\
LESS_TERMCAP_me
=
$(
printf
"
\e
[0m"
)
\
LESS_TERMCAP_se
=
$(
printf
"
\e
[0m"
)
\
LESS_TERMCAP_se
=
$(
printf
"
\e
[0m"
)
\
LESS_TERMCAP_so
=
$(
printf
"
\e
[1;44;33m"
)
\
LESS_TERMCAP_so
=
$(
printf
"
\e
[1;44;33m"
)
\
LESS_TERMCAP_ue
=
$(
printf
"
\e
[0m"
)
\
LESS_TERMCAP_ue
=
$(
printf
"
\e
[0m"
)
\
LESS_TERMCAP_us
=
$(
printf
"
\e
[1;32m"
)
\
LESS_TERMCAP_us
=
$(
printf
"
\e
[1;32m"
)
\
PAGER
=
/usr/bin/less
\
PAGER
=
/usr/bin/less
\
_NROFF_U
=
1
\
_NROFF_U
=
1
\
PATH
=
"
$HOME
/bin:
$PATH
"
\
PATH
=
"
$HOME
/bin:
$PATH
"
\
man
"
$@
"
man
"
$@
"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment