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
Show 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
...
...
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