From fc55a56c067d55c63991ddb416be4e742745450f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 2 Aug 2016 14:37:21 +1200 Subject: Get rid of a lot of comment boilerplate This is all stuff that should be or is in the manpages --- bin/han | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'bin/han') diff --git a/bin/han b/bin/han index 34b33ab3..7c495d2b 100755 --- a/bin/han +++ b/bin/han @@ -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 -# 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) -- cgit v1.2.3