aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-05-21 16:26:32 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-05-21 16:26:32 +1200
commitfee7fdd43f2473b750489d10e4b8ed46619fac16 (patch)
tree29f665c381c0931ad73aacc39ce8aff1457f8340 /man
parentDon't change directory during Makefile run (diff)
downloaddotfiles-fee7fdd43f2473b750489d10e4b8ed46619fac16.tar.gz
dotfiles-fee7fdd43f2473b750489d10e4b8ed46619fac16.zip
Add han(1)
Diffstat (limited to 'man')
-rw-r--r--man/han.118
1 files changed, 18 insertions, 0 deletions
diff --git a/man/han.1 b/man/han.1
new file mode 100644
index 00000000..8bb65be4
--- /dev/null
+++ b/man/han.1
@@ -0,0 +1,18 @@
+.TH HAN 1 "May 2015" "Manual page for han"
+.SH NAME
+.B han
+\- try running builtin help, then man(1)
+.SH SYNOPSIS
+.B han
+.I (HELPTOPIC | MANARGS...)
+.SH DESCRIPTION
+If called with a single argument, try running the help builtin for the given
+keyword, writing its output to a file. If it succeeds, show that. If not, pass
+the call to man(1).
+.P
+This was written so it could be used as a 'keywordprg' in Vim for Bash files;
+you can then use the K normal-mode binding over both shell builtins (e.g. read,
+set, export) and external programs (e.g. cat(1), grep(1), ed(1)).
+.SH AUTHOR
+Tom Ryder <tom@sanctum.geek.nz>
+