65b7fdace3da

More documentation shortcuts
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 13 Jul 2021 14:07:56 -0400
parents 86fd9633078c
children 13111f36fe96
branches/tags (none)
files bin/posix vim/vimrc

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/posix	Tue Jul 13 14:07:56 2021 -0400
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+if [ -z "$1" ]; then
+    w3m "$HOME/Dropbox/docs/posix/idx/utilities.html"
+else
+    HTMLFILE="$HOME/Dropbox/docs/posix/utilities/$1.html"
+    if [ -s "$HTMLFILE" ]; then
+        w3m "$HTMLFILE"
+    else
+        echo "No matching file for '$1'"
+    fi
+fi
--- a/vim/vimrc	Tue Jun 22 11:24:13 2021 -0400
+++ b/vim/vimrc	Tue Jul 13 14:07:56 2021 -0400
@@ -2826,6 +2826,16 @@
 " Mini-plugins ------------------------------------------------------------ {{{
 " Stuff that should probably be broken out into plugins, but hasn't proved to be
 " worth the time to do so just yet.
+"
+" HTTP Statuses {{{
+
+function! HTTPStatuses()
+    call termopen('w3m /home/sjl/Dropbox/docs/httpstatuses/httpstatuses.com/index.html')
+endfunc
+
+command! HTTPStatuses call HTTPStatuses()
+
+" }}}
 
 " Synstack {{{