bin/perldoc

Thu, 06 Jun 2019 02:47:39 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 06 Jun 2019 02:47:39 -0400
changeset 768
7ed19a36b198
parent 743
76c4c96d8b9f
child 774
d6a54f86ab10
permissions
-rwxr-xr-x

Use vim 8's defaults.vim, remove redundant settings and old feature checks

672
c6336b1897e9 add cpandoc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 #!/bin/sh
c6336b1897e9 add cpandoc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 set -eu
c6336b1897e9 add cpandoc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
743
76c4c96d8b9f Use term formatter, if term
Meredith Howard <mhoward@roomag.org>
parents: 672
diff changeset
4 if [ -t 1 ]; then
76c4c96d8b9f Use term formatter, if term
Meredith Howard <mhoward@roomag.org>
parents: 672
diff changeset
5 export PERLDOC="-oterm ${PERLDOC:-}"
76c4c96d8b9f Use term formatter, if term
Meredith Howard <mhoward@roomag.org>
parents: 672
diff changeset
6 fi
76c4c96d8b9f Use term formatter, if term
Meredith Howard <mhoward@roomag.org>
parents: 672
diff changeset
7
672
c6336b1897e9 add cpandoc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 if [ -x "$(command -v cpandoc)" ]; then
c6336b1897e9 add cpandoc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 exec cpandoc $*
c6336b1897e9 add cpandoc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 fi
c6336b1897e9 add cpandoc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 exec perldoc $*

mercurial