diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-02 14:37:21 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-02 14:37:21 +1200 |
commit | fc55a56c067d55c63991ddb416be4e742745450f (patch) | |
tree | c3dd11d53e50f4f42eacf4abe00d19e0e0c8663c /bin/han | |
parent | Separate flag from line test in slsf(1) (diff) | |
download | dotfiles-fc55a56c067d55c63991ddb416be4e742745450f.tar.gz dotfiles-fc55a56c067d55c63991ddb416be4e742745450f.zip |
Get rid of a lot of comment boilerplate
This is all stuff that should be or is in the manpages
Diffstat (limited to 'bin/han')
-rwxr-xr-x | bin/han | 25 |
1 files changed, 1 insertions, 24 deletions
@@ -1,28 +1,5 @@ #!/usr/bin/env bash - -# -# 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). -# -# 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, grep, ed). -# -# :set keywordprg=han -# -# You could put the above command in ~/.vim/after/ftplugin/sh.vim like this: -# -# " Use han(1) as a man(1) wrapper for Bash files if available -# if exists("b:is_bash") && executable('han') -# setlocal keywordprg=han -# endif -# -# Author: Tom Ryder <tom@sanctum.geek.nz> -# Copyright: 2015 Inspire Net Ltd -# - -# Name self +# Abstract calls to Bash help vs man(1) self=han # Give up completely if no BASH_VERSINFO (<2.0) |